
We don't need two roles for testr and stestr. The roles have logic to check to see if .testrepository or .stestr dirs exist, and the logic after the subunit extraction is the same. Combine them into a single role which should do the right thing. Also, document it. Change-Id: I833320cf9a932d8e119645eb798ce0c93d854321
20 lines
599 B
YAML
20 lines
599 B
YAML
- name: Generate testr_results.html file
|
|
# TODO(pabelanger): We cannot depend on /usr/os-testr-env here!!!
|
|
command: "/usr/os-testr-env/bin/subunit2html ./testrepository.subunit testr_results.html"
|
|
args:
|
|
chdir: "{{ zuul_work_dir }}"
|
|
|
|
- name: Compress testrepository.subunit file
|
|
archive:
|
|
path: "{{ zuul_work_dir }}/testrepository.subunit"
|
|
|
|
- name: Collect test-results
|
|
synchronize:
|
|
dest: "{{ zuul.executor.log_root }}"
|
|
mode: pull
|
|
src: "{{ zuul_work_dir }}/{{ item }}"
|
|
verify_host: true
|
|
with_items:
|
|
- "*testr_results.html.gz"
|
|
- "*testrepository.subunit.gz"
|