]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/vstart_runner.py: allow specifying mountpoint for local FUSE mounts
authorRishabh Dave <ridave@redhat.com>
Tue, 30 Jul 2019 11:26:46 +0000 (16:56 +0530)
committerVicente Cheng <freeze.bilsted@gmail.com>
Fri, 3 Jul 2020 08:54:38 +0000 (08:54 +0000)
Allow specifying the directory in CephFS that should be FUSE mounted on
the given path when running tests locally.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 514b58e3a32835e10c36a16316e8102cad54f75e)

qa/tasks/vstart_runner.py

index 27a2c33b12273b737e8f41d215f71bb51553582f..84436e233d68b438daa2865a4437dcfd3cb78e8c 100644 (file)
@@ -474,7 +474,9 @@ class LocalFuseMount(FuseMount):
         if self.is_mounted():
             super(LocalFuseMount, self).umount()
 
-    def mount(self, mount_path=None, mount_fs_name=None):
+    def mount(self, mount_path=None, mount_fs_name=None, mountpoint=None):
+        if mountpoint is not None:
+            self.mountpoint = mountpoint
         self.setupfs(name=mount_fs_name)
 
         self.client_remote.run(