Merge "Compress testrepository.subunit in fetch-testr-output"
This commit is contained in:
commit
a952268d84
|
@ -1,3 +1,14 @@
|
|||
- name: Register subunit file
|
||||
stat:
|
||||
path: "{{ zuul_work_dir }}/testrepository.subunit"
|
||||
register: p
|
||||
|
||||
- name: Compress subunit file to archive to logs server
|
||||
archive:
|
||||
path: "{{ p.stat.path }}"
|
||||
when:
|
||||
- p.stat.exists
|
||||
|
||||
- name: Collect test-results
|
||||
synchronize:
|
||||
dest: "{{ zuul.executor.log_root }}"
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
$bin_path/testr last --subunit > ./testrepository.subunit
|
||||
fi
|
||||
/usr/os-testr-env/bin/subunit2html ./testrepository.subunit testr_results.html
|
||||
gzip -9 ./testrepository.subunit
|
||||
gzip -9 ./testr_results.html
|
||||
|
||||
rancount=$($bin_path/testr last | sed -ne 's/Ran \([0-9]\+\).*tests in.*/\1/p')
|
||||
|
|
Loading…
Reference in New Issue