Browse Source

Merge "Allow overridding OS_TEST_TIMEOUT via the role variables"

changes/90/680790/8
Zuul 1 week ago
parent
commit
8d1b36559c

+ 5
- 0
roles/run-tempest/README.rst View File

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

+ 1
- 0
roles/run-tempest/defaults/main.yaml View File

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

+ 1
- 0
roles/run-tempest/tasks/main.yaml View File

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

Loading…
Cancel
Save