From a83ea849d7d2096762a125b8c6dbb8eb9988b2a9 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Fri, 19 Jul 2019 13:48:51 +0530 Subject: [PATCH] qa/cephfs: make run_shell() accept args as str too Signed-off-by: Rishabh Dave --- qa/tasks/cephfs/mount.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index 8fad4d8a4055..81d779cb8acb 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -184,6 +184,9 @@ class CephFSMount(object): def run_shell(self, args, wait=True, stdin=None, check_status=True, omit_sudo=True): + if isinstance(args, str): + args = args.split() + args = ["cd", self.mountpoint, run.Raw('&&'), "sudo"] + args return self.client_remote.run(args=args, stdout=StringIO(), stderr=StringIO(), wait=wait, -- 2.47.3