Generate list of failing tests

Add a file containing the list of failing tests is important to send
these to logstash and make it easy for people identify how often a
particular test is failing in a particular job.
This should not impact the time of the job or the size of the file, once
it's a small and very quickly command to run

Change-Id: Ib6c2dfc41ac48c3ca6822d6298e1cc55f5c28fbe
This commit is contained in:
Arx Cruz 2021-06-08 11:42:31 +02:00
parent 3771143280
commit 472ec21a91
1 changed files with 18 additions and 0 deletions

View File

@ -142,6 +142,24 @@
- skip_ansible_lint
when: tempest_run_stackviz | bool
- name: Create tempest failing tests file
shell: |
set -e
if [ -d {{ tempest_venv_bin }} ];
then
. {{ tempest_venv_bin }}/activate
fi
{{ stestr_executable }} failing --list > {{ tempest_log_dir }}/failing_tests.log
args:
chdir: "{{ tempest_workspace }}"
executable: /bin/bash
failed_when: false
changed_when: false
tags:
# don't trigger ANSIBLE0013
- skip_ansible_lint
when: tempest_tests_run.rc != 0
- name: Fail if tempest tests did not succeed
assert:
that: