724a520adf
The role allows override of the zuul_work_dir variable, however in the step where it retrieves the test results is the only step where it prepends the directory with a fixed path. This breaks the step if the zuul_work_dir given is a fully qualified path. This patch defaults the zuul_work_dir to a fully qualified directory and standarizes the usage zuul_work_dir across the role. Change-Id: I62bc7571f625586a0d1b660f896e0c7cbaeae6e1
31 lines
750 B
YAML
31 lines
750 B
YAML
- name: Find subunit2html
|
|
include: find-subunit-html.yaml
|
|
|
|
- name: Generate testr_results.html file
|
|
command: "{{ subunit_html_command }} ./testrepository.subunit testr_results.html"
|
|
args:
|
|
chdir: "{{ zuul_work_dir }}"
|
|
when: subunit_html_command is defined
|
|
|
|
- name: Find subunit files
|
|
find:
|
|
paths:
|
|
- "{{ zuul_work_dir }}"
|
|
patterns:
|
|
- testr_results.html
|
|
- testrepository.subunit
|
|
register: subunit_files
|
|
|
|
- name: Compress subunit files
|
|
archive:
|
|
path: "{{ item.path }}"
|
|
with_items: "{{ subunit_files.files }}"
|
|
|
|
- name: Collect test-results
|
|
synchronize:
|
|
dest: "{{ zuul.executor.log_root }}"
|
|
mode: pull
|
|
src: "{{ item.path }}.gz"
|
|
verify_host: true
|
|
with_items: "{{ subunit_files.files }}"
|