project-config/roles/fetch-translations-subunit-output/tasks/main.yaml
Monty Taylor 63404d3d0d Rename fetch-translations-stestr-output
The role name is misleading. It's not fetching stestr output, it's
fetching subunit output.

Add a note to the README explaining what it does and that it's not using
fetch-subunit-output on purpose.

Use  "{{ zuul.project.src_dir }}" instead of
"src/{{ zuul.project.canonical_name }}".

Change-Id: I1b5ab65f9697ec184969ca7899fb40294cdb853c
2018-01-23 13:40:51 +01:00

14 lines
345 B
YAML

- name: Register testrepository.subunit file
stat:
path: "{{ zuul_work_dir }}/testrepository.subunit.gz"
register: subunit
- name: Collect test-results
synchronize:
dest: "{{ zuul.executor.log_root }}"
mode: pull
src: "{{ zuul_work_dir }}/testrepository.subunit.gz"
verify_host: true
when:
- subunit.stat.exists