Browse Source

Allow to configure pattern for launch tests

Change-Id: I5bf73dc1381e13ce169aa6d55f3a67e144b4cbc2
Sergey Reshetnyak 2 years ago
parent
commit
a6120a5555
2 changed files with 9 additions and 1 deletions
  1. 2
    0
      service/files/defaults.yaml
  2. 7
    1
      service/files/run-tempest.sh.j2

+ 2
- 0
service/files/defaults.yaml View File

@@ -27,6 +27,8 @@ configs:
27 27
         server_path: /var/www/html
28 28
         site: http://localhost
29 29
         username: jenkins
30
+      tests_set: full
31
+      tests_regex: null
30 32
       volume:
31 33
         storage_protocol: ceph
32 34
       volume_feature:

+ 7
- 1
service/files/run-tempest.sh.j2 View File

@@ -27,7 +27,13 @@ rally verify configure-verifier --extend /var/lib/rally/tempest.conf --show
27 27
 
28 28
 os_release="{{ rally.tempest.openstack_release }}"
29 29
 
30
-rally verify start --skip-list "/var/lib/rally/${os_release}-skip-list.list" --detailed
30
+{% if rally.tempest.tests_regex %}
31
+pattern="{{ rally.tempest.tests_regex }}"
32
+{% else %}
33
+pattern="set={{ rally.tempest.tests_set }}"
34
+{% endif %}
35
+
36
+rally verify start --pattern "${pattern}" --skip-list "/var/lib/rally/${os_release}-skip-list.list" --detailed
31 37
 
32 38
 path="/var/lib/rally/{{ rally.tempest.static.path }}"
33 39
 mkdir -p "${path}"

Loading…
Cancel
Save