From f2be87adf23ff383d8c0391a619e85be6f58eef6 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 13 Feb 2024 19:35:06 +0530 Subject: [PATCH] qa/cephfs: handle case where mntpt is '/' in caps_helper.py Signed-off-by: Rishabh Dave (cherry picked from commit 7626bd5d37b6f24fe60840c225ef917356f8dfc4) --- qa/tasks/cephfs/caps_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5