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.104658-reef~1^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f2be87adf23ff383d8c0391a619e85be6f58eef6;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 f1a2abd674c..b8b2a92fe9e 100644 --- a/qa/tasks/cephfs/caps_helper.py +++ b/qa/tasks/cephfs/caps_helper.py @@ -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