run-tempest role: new tempest_test_regex variable

Specify a regular expression to filter the tests.

Change-Id: I44911c6bd6ede68c3376c8a6b42700310dce7a06
This commit is contained in:
Luigi Toscano 2017-11-16 15:22:07 +01:00
parent 74810553a0
commit e8a1f53986
3 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,13 @@ Run Tempest
The number of parallel test processes.
.. zuul:rolevar:: tempest_test_regex
:default: ''
A regular expression used to select the tests.
It works only when used with some specific tox environments
('all', 'all-plugin'.)
.. zuul:rolevar:: tox_venvlist
:default: smoke

View File

@ -1,2 +1,3 @@
devstack_base_dir: /opt/stack
tempest_test_regex: ''
tox_venvlist: smoke

View File

@ -21,7 +21,7 @@
when: num_cores|int > 3
- name: Run Tempest
command: tox -e {{tox_venvlist}} -- --concurrency={{tempest_concurrency|default(default_concurrency)}}
command: tox -e {{tox_venvlist}} -- {{tempest_test_regex|quote}} --concurrency={{tempest_concurrency|default(default_concurrency)}}
args:
chdir: "{{devstack_base_dir}}/tempest"
become: true