Merge "Add support for blacklist file for Zuul jobs"
This commit is contained in:
commit
1525e67d7b
@ -29,6 +29,12 @@ Run Tempest
|
|||||||
# Line with only a comment.
|
# Line with only a comment.
|
||||||
(tempest\.(api|scenario|thirdparty)).*$ # Run only api scenario and third party
|
(tempest\.(api|scenario|thirdparty)).*$ # Run only api scenario and third party
|
||||||
|
|
||||||
|
.. zuul:rolevar:: tempest_test_blacklist
|
||||||
|
|
||||||
|
Specifies a blacklist file to skip tests that are not needed.
|
||||||
|
|
||||||
|
Pass a full path to the file.
|
||||||
|
|
||||||
.. zuul:rolevar:: tox_envlist
|
.. zuul:rolevar:: tox_envlist
|
||||||
:default: smoke
|
:default: smoke
|
||||||
|
|
||||||
|
@ -20,8 +20,22 @@
|
|||||||
default_concurrency: "{{ num_cores|int // 2 }}"
|
default_concurrency: "{{ num_cores|int // 2 }}"
|
||||||
when: num_cores|int > 3
|
when: num_cores|int > 3
|
||||||
|
|
||||||
|
- when:
|
||||||
|
- tempest_test_blacklist is defined
|
||||||
|
block:
|
||||||
|
- name: Check for test blacklist file
|
||||||
|
stat:
|
||||||
|
path: "{{ tempest_test_blacklist }}"
|
||||||
|
register:
|
||||||
|
blacklist_stat
|
||||||
|
|
||||||
|
- name: Build blacklist option
|
||||||
|
set_fact:
|
||||||
|
blacklist_option: "--blacklist-file={{ tempest_test_blacklist|quote }}"
|
||||||
|
when: blacklist_stat.stat.exists
|
||||||
|
|
||||||
- name: Run Tempest
|
- name: Run Tempest
|
||||||
command: tox -e {{tox_envlist}} -- {{tempest_test_regex|quote}} --concurrency={{tempest_concurrency|default(default_concurrency)}}
|
command: tox -e {{tox_envlist}} -- {{tempest_test_regex|quote}} {{blacklist_option|default('')}} --concurrency={{tempest_concurrency|default(default_concurrency)}}
|
||||||
args:
|
args:
|
||||||
chdir: "{{devstack_base_dir}}/tempest"
|
chdir: "{{devstack_base_dir}}/tempest"
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user