]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/rbd: drop python2 support
authorKefu Chai <kchai@redhat.com>
Sun, 19 Jul 2020 09:37:57 +0000 (17:37 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 22 Jul 2020 03:55:49 +0000 (11:55 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/rbd.py

index 7e1128007c5206bc573d2273126c394e183907c9..a5b497a4953c2f7c925d647e4593d70d09adb441 100644 (file)
@@ -16,7 +16,6 @@ from teuthology.task.common_fs_utils import generic_mkfs
 from teuthology.task.common_fs_utils import generic_mount
 from teuthology.task.common_fs_utils import default_image_name
 
-import six
 
 #V1 image unsupported but required for testing purposes
 os.environ["RBD_FORCE_ALLOW_V1"] = "1"
@@ -348,16 +347,16 @@ def run_xfstests(ctx, config):
     with parallel() as p:
         for role, properties in config.items():
             p.spawn(run_xfstests_one_client, ctx, role, properties)
-        exc_info = None
+        exc = None
         while True:
             try:
                 p.next()
             except StopIteration:
                 break
             except:
-                exc_info = sys.exc_info()
-        if exc_info:
-            six.reraise(exc_info[0], exc_info[1], exc_info[2])
+                exc = sys.exc_info()[1]
+        if exc is not None:
+            raise exc
     yield
 
 def run_xfstests_one_client(ctx, role, properties):