131e8544b8
This commit adds a new role for jobs that run stestr instead of testrepository. This will generate the output using stestr for those cases like we do with testr for the old jobs which leverage testrepository. This change is the dual of the jenkins script patch: I1fc3b146e99e3484fa009b227ee5d0aeb6ed6084 Change-Id: Ibf652801507ad2845281dd540b4007b04875b2ae
24 lines
532 B
YAML
24 lines
532 B
YAML
- name: Register stestr directory
|
|
stat:
|
|
path: "{{ zuul_work_dir }}/.stestr"
|
|
register: stestr_stat
|
|
|
|
- name: Process testr artifacts
|
|
include: process.yaml
|
|
when:
|
|
- stestr_stat.stat.exists
|
|
|
|
- name: Collect test-results
|
|
synchronize:
|
|
dest: "{{ zuul.executor.log_root }}"
|
|
mode: pull
|
|
rsync_opts:
|
|
- "--ignore-missing-args"
|
|
src: "{{ zuul_work_dir }}/{{ item }}"
|
|
verify_host: true
|
|
with_items:
|
|
- "*testr_results.html.gz"
|
|
- "*testrepository.subunit.gz"
|
|
when:
|
|
- stestr_stat.stat.exists
|