Add testrepository.subunit file to root dir

os_tempest role copy these files to a different directory than the
default one for tempest, since they don't use it to submit the results
to openstack health.

https://tree.taiga.io/project/tripleo-ci-board/task/832?kanban-status=1447275

Change-Id: I3e70d31ea3c6e1ea966b812703cdcdbb293dc722
This commit is contained in:
Arx Cruz 2019-03-07 12:45:48 +01:00
parent 5d8a09df83
commit 57e1e5023d
1 changed files with 8 additions and 4 deletions

View File

@ -81,15 +81,19 @@
fi;
when: use_os_tempest is defined
- name: fetch tempest results to the root of the collect_dir
- name: tempest results to the root of the collect_dir
shell: >
cp {{ artcl_collect_dir }}/undercloud/home/stack/tempest/tempest.{xml,html}{,.gz} {{ artcl_collect_dir }} || true;
gunzip {{ artcl_collect_dir }}/tempest.{xml,html}.gz || true;
- name: fetch tempest results to the root of the collect_dir for os_tempest
- name: Gunzip tempest results to the root of the collect_dir for os_tempest
shell: >
cp {{ artcl_collect_dir }}/undercloud/var/log/tempest/stestr_results.html.gz {{ artcl_collect_dir }} || true;
gunzip {{ artcl_collect_dir }}/stestr_results.html.gz || true;
gunzip -c {{ artcl_collect_dir }}/undercloud/var/log/tempest/stestr_results.html.gz > {{ artcl_collect_dir }}/stestr_results.html || true
when: use_os_tempest is defined
- name: Copy testrepository.subunit file to the root of collect_dir for os_tempest
shell: >
cp {{ artcl_collect_dir }}/undercloud/var/log/tempest/testrepository.subunit.gz {{ artcl_collect_dir }}/testrepository.subunit.gz || true
when: use_os_tempest is defined
- name: Fetch .sh and .log files from local working directory on localhost