Actually run the unittests post playbooks
Put the tasks into a role so that we can set zuul_work_dir in defaults.yaml so that this also works if we're setting a directory in a variable. Change-Id: I638f7682d086781178f2dc7517eb0fb09a5f2acd
This commit is contained in:
parent
05735e64e7
commit
2dfb08a49e
@ -1,12 +1,3 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
roles:
|
||||||
- name: Collect test-results
|
- fetch-testr-output
|
||||||
synchronize:
|
|
||||||
dest: "{{ zuul.executor.log_root }}"
|
|
||||||
mode: pull
|
|
||||||
rsync_opts:
|
|
||||||
- "--ignore-missing-args"
|
|
||||||
src: "src/{{ zuul.project.canonical_name }}/{{ item }}"
|
|
||||||
with_items:
|
|
||||||
- "*testr_results.html.gz"
|
|
||||||
- "*testrepository.subunit.gz"
|
|
||||||
|
2
roles/fetch-testr-output/defaults/main.yaml
Normal file
2
roles/fetch-testr-output/defaults/main.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
zuul_work_dir: "src/{{ zuul.project.canonical_name }}"
|
10
roles/fetch-testr-output/tasks/main.yaml
Normal file
10
roles/fetch-testr-output/tasks/main.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
- name: Collect test-results
|
||||||
|
synchronize:
|
||||||
|
dest: "{{ zuul.executor.log_root }}"
|
||||||
|
mode: pull
|
||||||
|
rsync_opts:
|
||||||
|
- "--ignore-missing-args"
|
||||||
|
src: "{{ zuul_work_dir }}/{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- "*testr_results.html.gz"
|
||||||
|
- "*testrepository.subunit.gz"
|
Loading…
Reference in New Issue
Block a user