From: Kefu Chai Date: Sun, 31 May 2020 01:03:12 +0000 (+0800) Subject: qa/tasks/tempest: use --black-regex for blacklisting tests X-Git-Tag: v16.1.0~2190^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F35226%2Fhead;p=ceph.git qa/tasks/tempest: use --black-regex for blacklisting tests simpler this way Signed-off-by: Kefu Chai --- diff --git a/qa/tasks/tempest.py b/qa/tasks/tempest.py index 3032a3e42cec..a2b55dfb84de 100644 --- a/qa/tasks/tempest.py +++ b/qa/tasks/tempest.py @@ -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