Merge "Generate list of failing tests"

This commit is contained in:
Zuul 2021-06-15 22:00:04 +00:00 committed by Gerrit Code Review
commit 1f22d1e8d0
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: