]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: Add run_shell_payload routine 38101/head
authorKotresh HR <khiremat@redhat.com>
Thu, 7 Jan 2021 09:53:01 +0000 (15:23 +0530)
committerKotresh HR <khiremat@redhat.com>
Thu, 7 Jan 2021 10:09:43 +0000 (15:39 +0530)
Signed-off-by: Kotresh HR <khiremat@redhat.com>
qa/tasks/cephfs/mount.py

index 5d8e6d23ad9ab5ec8fd212b5b0d440d0f3ecea2a..190ac1e07a7c12176e685fc3c451e0392d05153c 100644 (file)
@@ -9,7 +9,7 @@ from six import StringIO
 from textwrap import dedent
 import os
 from teuthology.orchestra import run
-from teuthology.orchestra.run import CommandFailedError, ConnectionLostError
+from teuthology.orchestra.run import CommandFailedError, ConnectionLostError, Raw
 from tasks.cephfs.filesystem import Filesystem
 
 log = logging.getLogger(__name__)
@@ -176,6 +176,9 @@ class CephFSMount(object):
                                       check_status=check_status,
                                       omit_sudo=omit_sudo)
 
+    def run_shell_payload(self, payload, **kwargs):
+        return self.run_shell(["bash", "-c", Raw(f"'{payload}'")], **kwargs)
+
     def open_no_data(self, basename):
         """
         A pure metadata operation