Merge "Compress testrepository.subunit in fetch-testr-output"

This commit is contained in:
Jenkins 2017-07-19 22:54:32 +00:00 committed by Gerrit Code Review
commit a952268d84
2 changed files with 11 additions and 1 deletions

View File

@ -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 }}"

View File

@ -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')