Merge "Fix run-tempest black/exclude var setting"

This commit is contained in:
Zuul 2021-02-12 22:53:59 +00:00 committed by Gerrit Code Review
commit 9b6f441fdc
2 changed files with 4 additions and 14 deletions

View File

@ -1,10 +1,6 @@
devstack_base_dir: /opt/stack
tempest_test_regex: ''
tox_envlist: smoke
# TODO(kopecmartin) remove tempest_black_regex once all consumers of this
# role have switched to the tempest_exclude_regex option.
tempest_black_regex: ''
tempest_exclude_regex: ''
tox_extra_args: ''
tempest_test_timeout: ''
stable_constraints_file: "{{ devstack_base_dir }}/requirements/upper-constraints.txt"

View File

@ -70,22 +70,16 @@
# TODO(kopecmartin) remove this after all consumers of the role have switched
# to tempest_exclude_regex option, until then it's kept here for the backward
# compatibility
- name: Set tempest_exclude_regex
- name: Build exclude regex (old param)
set_fact:
tempest_exclude_regex: "{{ tempest_black_regex }}"
tempest_test_exclude_regex: "--black-regex={{tempest_black_regex|quote}}"
when:
- tempest_black_regex is defined
- tempest_exclude_regex is not defined
- name: Build exclude regex (old param)
set_fact:
tempest_exclude_regex: "--black-regex={{tempest_black_regex|quote}}"
when:
- tempest_black_regex is defined
- name: Build exclude regex (new param)
set_fact:
tempest_exclude_regex: "--exclude-regex={{tempest_exclude_regex|quote}}"
tempest_test_exclude_regex: "--exclude-regex={{tempest_exclude_regex|quote}}"
when:
- tempest_black_regex is not defined
- tempest_exclude_regex is defined
@ -94,7 +88,7 @@
command: tox -e {{tox_envlist}} {{tox_extra_args}} -- {{tempest_test_regex|quote}} \
{{blacklist_option|default('')}} {{exclude_list_option|default('')}} \
--concurrency={{tempest_concurrency|default(default_concurrency)}} \
{{tempest_exclude_regex|default('')}}
{{tempest_test_exclude_regex|default('')}}
args:
chdir: "{{devstack_base_dir}}/tempest"
register: tempest_run_result