]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
DNM: qa/cephfs: fix test_subvolume_create_with_desired_mode
authorRishabh Dave <ridave@redhat.com>
Mon, 23 Jun 2025 08:15:02 +0000 (13:45 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 3 Dec 2025 07:51:56 +0000 (13:21 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/test_volumes.py

index b427d9735234c56469fdb3eb5ac6e84c08bab455..df7eb703c78f66f9819e5d06b03a09961daee057 100644 (file)
@@ -2720,10 +2720,10 @@ class TestSubvolumes(TestVolumesHelper):
         self._fs_cmd("subvolume", "create", self.volname, subvol1,  "--mode", "777")
 
         subvol1_path = self._get_subvolume_path(self.volname, subvol1)
-
         # check subvolumegroup's mode
-        subvol_par_path = os.path.dirname(subvol1_path)
-        group_path = os.path.dirname(subvol_par_path)
+        group_path = subvol1_path
+        for i in range(4):
+            group_path = os.path.dirname(group_path)
         actual_mode1 = self.mount_a.run_shell(['stat', '-c' '%a', group_path]).stdout.getvalue().strip()
         self.assertEqual(actual_mode1, default_mode)
         # check /volumes mode