]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/tempest: use --black-regex for blacklisting tests 35226/head
authorKefu Chai <kchai@redhat.com>
Sun, 31 May 2020 01:03:12 +0000 (09:03 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Jun 2020 01:48:32 +0000 (09:48 +0800)
simpler this way

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/tempest.py

index 3032a3e42cec8603296294b7b0c8653f40661681..a2b55dfb84deb5586dcab0f963c8cd319fd71013 100644 (file)
@@ -159,10 +159,8 @@ def run_tempest(ctx, config):
                 get_tempest_dir(ctx) + '/workspace.yaml',
                 '--workspace',
                 'rgw',
-                '--regex',
-                    '(tempest.api.object_storage)' +
-                    ''.join([ '(?!{blackitem})'.format(blackitem=blackitem)
-                        for blackitem in blacklist])
+                '--regex', '^tempest.api.object_storage',
+                '--black-regex', '|'.join(blacklist)
             ])
     try:
         yield