]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Tue, 13 Feb 2024 14:05:42 +0000 (19:35 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/caps_helper.py

index 75a40ac83fe8d860ba3707211a5aae294e0b48b6..ef8dfa406c400762703fdd5e51c1e2dd3753f1d6 100644 (file)
@@ -247,7 +247,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