Pass mount_path through to ssh_client.mount in scenario manager
The RemoteClient.mount method takes an optional mount_path kwarg which
defaults to '/mnt'. The create_timestamp and get_timestamp methods in
the base scenario manager also have the same kwarg but aren't passing it
though to the mount() method, which will break down if the caller in the
scenario tests ever uses a different mount path.
Closes-Bug: #1501512
Change-Id: I594f769178dd8a99398be2d590b8244517920a4c
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index cafc137..fd84570 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -562,7 +562,7 @@
ssh_client = self.get_remote_client(server_or_ip)
if dev_name is not None:
ssh_client.make_fs(dev_name)
- ssh_client.mount(dev_name)
+ ssh_client.mount(dev_name, mount_path)
cmd_timestamp = 'sudo sh -c "date > %s/timestamp; sync"' % mount_path
ssh_client.exec_command(cmd_timestamp)
timestamp = ssh_client.exec_command('sudo cat %s/timestamp'
@@ -574,7 +574,7 @@
def get_timestamp(self, server_or_ip, dev_name=None, mount_path='/mnt'):
ssh_client = self.get_remote_client(server_or_ip)
if dev_name is not None:
- ssh_client.mount(dev_name)
+ ssh_client.mount(dev_name, mount_path)
timestamp = ssh_client.exec_command('sudo cat %s/timestamp'
% mount_path)
if dev_name is not None: