]> 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>
Fri, 23 Aug 2024 10:36:52 +0000 (16:06 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 7626bd5d37b6f24fe60840c225ef917356f8dfc4)

qa/tasks/cephfs/caps_helper.py

index f1a2abd674cfd673a21878126f66ae5b93c314a8..b8b2a92fe9ef4943d2d2e93f42cdb8c83cbba18d 100644 (file)
@@ -248,7 +248,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