Merge "Adds tempest run command with --test-list option"

This commit is contained in:
Zuul 2019-01-29 20:59:51 +00:00 committed by Gerrit Code Review
commit f2b7619bfa
1 changed files with 17 additions and 0 deletions

View File

@ -88,6 +88,23 @@
# don't trigger ANSIBLE0013
- skip_ansible_lint
- name: Generate test-list file
shell: |
set -e
if [ -d {{ tempest_venv_bin }} ];
then
. {{ tempest_venv_bin }}/activate
fi
tempest run --whitelist-file {{ tempest_test_whitelist_file_path }}{% if tempest_test_blacklist | length > 0 %} --blacklist-file {{ tempest_test_blacklist_file_path }}{% endif %} --list-tests &> {{ tempest_log_dir }}/test_list.txt
args:
chdir: "{{ tempest_workspace }}"
executable: /bin/bash
changed_when: false
failed_when: false
tags:
# don't trigger ANSIBLE0013
- skip_ansible_lint
- name: Fail if tempest tests did not succeed
assert:
that: