Allow overridding OS_TEST_TIMEOUT via the role variables

Change-Id: I7e464ba27704a0b4b13d6e0787b81750deee965e
This commit is contained in:
Dmitry Tantsur 2019-08-29 14:06:12 +02:00
parent e805a65b3c
commit 5952f85343
3 changed files with 7 additions and 0 deletions

View File

@ -67,3 +67,8 @@ Run Tempest
:: ::
vars: vars:
tox_extra_args: --sitepackages tox_extra_args: --sitepackages
.. zuul:rolevar:: tempest_test_timeout
:default: ''
The timeout (in seconds) for each test.

View File

@ -3,3 +3,4 @@ tempest_test_regex: ''
tox_envlist: smoke tox_envlist: smoke
tempest_black_regex: '' tempest_black_regex: ''
tox_extra_args: '' tox_extra_args: ''
tempest_test_timeout: ''

View File

@ -42,3 +42,4 @@
chdir: "{{devstack_base_dir}}/tempest" chdir: "{{devstack_base_dir}}/tempest"
become: true become: true
become_user: tempest become_user: tempest
environment: '{{ {"OS_TEST_TIMEOUT": tempest_test_timeout} if tempest_test_timeout else {} }}'