]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/tasks/cephfs/mount.py
import 15.2.5
[ceph.git] / ceph / qa / tasks / cephfs / mount.py
index 7d04535c8240c9b6ff69b7977d4702fc15f3dc0d..48f065051745d6863610e87769fb132a9678c164 100644 (file)
@@ -8,7 +8,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__)
@@ -197,6 +197,9 @@ class CephFSMount(object):
         p.wait()
         return six.ensure_str(p.stdout.getvalue().strip())
 
+    def run_shell_payload(self, payload, **kwargs):
+        return self.run_shell(["bash", "-c", Raw(f"'{payload}'")], **kwargs)
+
     def run_shell(self, args, wait=True, stdin=None, check_status=True,
                   omit_sudo=True):
         if isinstance(args, str):