
This reverts commit 9f4efe98e10c9d553dc8a15bd7b84584e1118684. Compress testr results.html before fetching it The synchronize command has testr_results.html.gz in the file list, but we don't ever gzip it so it fails on fetch. Make the "Check for testr directory" task actually check for .testrepository and not for .stestr a second time. The compression bug broke only for people using stestr. For people using testr, the path bug meant they don't get html reports. Change-Id: I0cdfc66ee8b046affeb0b071fef38c21cb7a4948
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
- name: Check for stestr directory
|
|
stat:
|
|
path: "{{ zuul_work_dir }}/.stestr"
|
|
register: stestr_stat
|
|
|
|
- name: Generate stestr subunit file
|
|
shell:
|
|
cmd: ".tox/{{ tox_envlist }}/bin/stestr last --subunit > ./testrepository.subunit"
|
|
chdir: "{{ zuul_work_dir }}"
|
|
when:
|
|
- tox_envlist is defined
|
|
- stestr_stat.stat.exists
|
|
|
|
- name: Generate stestr subunit file
|
|
shell:
|
|
cmd: "stestr last --subunit > ./testrepository.subunit"
|
|
chdir: "{{ zuul_work_dir }}"
|
|
when:
|
|
- tox_envlist is not defined
|
|
- stestr_stat.stat.exists
|
|
|
|
- name: Check for testr directory
|
|
stat:
|
|
path: "{{ zuul_work_dir }}/.testrepository"
|
|
register: testr_stat
|
|
when: not stestr_stat.stat.exists
|
|
|
|
- name: Generate testrepository.subunit file
|
|
shell:
|
|
cmd: ".tox/{{ tox_envlist }}/bin/testr last --subunit > ./testrepository.subunit"
|
|
chdir: "{{ zuul_work_dir }}"
|
|
when:
|
|
- tox_envlist is defined
|
|
- not stestr_stat.stat.exists
|
|
- testr_stat.stat.exists
|
|
|
|
- name: Generate testrepository.subunit file
|
|
shell:
|
|
cmd: "testr last --subunit > ./testrepository.subunit"
|
|
chdir: "{{ zuul_work_dir }}"
|
|
when:
|
|
- tox_envlist is not defined
|
|
- not stestr_stat.stat.exists
|
|
- testr_stat.stat.exists
|
|
|
|
- name: Process and fetch subunit results
|
|
include: process.yaml
|
|
when: stestr_stat.stat.exists or testr_stat.stat.exists
|