]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/cephfs: handle case where mntpt is '/' in caps_helper.py
authorRishabh Dave <ridave@redhat.com>
Tue, 13 Feb 2024 14:05:06 +0000 (19:35 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 9 Sep 2024 13:50:11 +0000 (19:20 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 7626bd5d37b6f24fe60840c225ef917356f8dfc4)

qa/tasks/cephfs/caps_helper.py

index c9ac2803e4785839cb41cffaa9268a163d519747..addd2da89e43f8fbf0573c1e8b31ef4c8238f245 100644 (file)
@@ -249,7 +249,7 @@ class MdsCapTester:
         Run test for read perm and, for write perm, run positive test if it
         is present and run negative test if not.
         """
-        if mntpt:
+        if mntpt and mntpt != '/':
             # beacaue we want to value of mntpt from test_set.path along with
             # slash that precedes it.
             mntpt = '/' + mntpt if mntpt[0] != '/' else mntpt