From: Rishabh Dave Date: Tue, 13 Feb 2024 14:05:06 +0000 (+0530) Subject: qa/cephfs: handle case where mntpt is '/' in caps_helper.py X-Git-Tag: testing/wip-rishabh-testing-20240909.165402-squid^2~5 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1377b638c22213796945a003c3da0ccb177c5793;p=ceph-ci.git qa/cephfs: handle case where mntpt is '/' in caps_helper.py Signed-off-by: Rishabh Dave (cherry picked from commit 7626bd5d37b6f24fe60840c225ef917356f8dfc4) --- diff --git a/qa/tasks/cephfs/caps_helper.py b/qa/tasks/cephfs/caps_helper.py index c9ac2803e47..addd2da89e4 100644 --- a/qa/tasks/cephfs/caps_helper.py +++ b/qa/tasks/cephfs/caps_helper.py @@ -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