]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: avoid unnecessary importing in test_volumes.py 62062/head
authorRishabh Dave <ridave@redhat.com>
Fri, 28 Feb 2025 15:25:29 +0000 (20:55 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 28 Feb 2025 15:25:29 +0000 (20:55 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/test_volumes.py

index 9f7250570fb167ecb3593f5b92fc0e4a2e6a7af0..2cfb13b99bcdad47750fa6c6448322c0f9d6e3db 100644 (file)
@@ -15,7 +15,6 @@ from tasks.cephfs.cephfs_test_case import CephFSTestCase
 from tasks.cephfs.fuse_mount import FuseMount
 from teuthology.contextutil import safe_while
 from teuthology.exceptions import CommandFailedError
-from teuthology import contextutil
 
 log = logging.getLogger(__name__)
 
@@ -9156,7 +9155,7 @@ class TestMisc(TestVolumesHelper):
         clone_path = f'./volumes/_nogroup/{clone}'
         self.mount_a.run_shell(['sudo', 'rm', '-rf', clone_path], omit_sudo=False)
 
-        with contextutil.safe_while(sleep=5, tries=6) as proceed:
+        with safe_while(sleep=5, tries=6) as proceed:
             while proceed():
                 try:
                     result = json.loads(self._fs_cmd("subvolume", "snapshot", "info", self.volname, subvolume, snapshot))