From b51139fce72e5ed12eb2696c416b68af6daac8cd Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 31 May 2020 09:03:12 +0800 Subject: [PATCH] qa/tasks/tempest: use --black-regex for blacklisting tests simpler this way Signed-off-by: Kefu Chai --- qa/tasks/tempest.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qa/tasks/tempest.py b/qa/tasks/tempest.py index 3032a3e42ce..a2b55dfb84d 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 -- 2.39.5