From d144097851da465f5345f0a1a0d9fb67189e8257 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 30 Jul 2019 16:56:46 +0530 Subject: [PATCH] qa/vstart_runner.py: allow specifying mountpoint for local FUSE mounts Allow specifying the directory in CephFS that should be FUSE mounted on the given path when running tests locally. Signed-off-by: Rishabh Dave (cherry picked from commit 514b58e3a32835e10c36a16316e8102cad54f75e) --- qa/tasks/vstart_runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index 27a2c33b12273..84436e233d68b 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -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( -- 2.39.5