]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: delete path from cmd args after use 46991/head
authorRishabh Dave <ridave@redhat.com>
Wed, 15 Sep 2021 09:02:29 +0000 (14:32 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 6 Jul 2022 11:42:58 +0000 (17:12 +0530)
A new path is obtained every iteration which is appended to command
arguments. After the command has been executed successfully, delete the
the  path from command's arguments so that the command's arguments don't
have two paths in next iteration and it works as expected.

Fixes: https://tracker.ceph.com/issues/56416
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/caps_helper.py

index 3e49d9f79e249632f9963efc976f4f20d02cb4bf..249cbec361ffc61c510a8567a799cbe275888b05 100644 (file)
@@ -67,6 +67,7 @@ class CapsHelper(CephFSTestCase):
                     cmdargs.append(path)
                     mount.negtestcmd(args=cmdargs, retval=1,
                                      errmsg='permission denied')
+                    cmdargs.pop(-1)
 
     def get_mon_cap_from_keyring(self, client_name):
         keyring = self.run_cluster_cmd(cmd=f'auth get {client_name}')