]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart_runnner: add sh method to LocalRemote
authorRishabh Dave <ridave@gmail.com>
Tue, 7 Jan 2020 10:15:15 +0000 (10:15 +0000)
committerRishabh Dave <ridave@redhat.com>
Mon, 13 Jan 2020 04:52:56 +0000 (10:22 +0530)
The method is a wrapper of teuthology.misc.sh

Fixes: https://tracker.ceph.com/issues/43496
Signed-off-by: Rishabh Dave <ridave@gmail.com>
qa/tasks/vstart_runner.py

index de6922e61151c9749f20eb1bb113d3d055ad2552..5f33d546a27aeeec8280e94d5e12e93bc849fd8b 100644 (file)
@@ -391,6 +391,11 @@ class LocalRemote(object):
 
         return proc
 
+    def sh(self, command, log_limit=1024, cwd=None, env=None):
+        from teuthology.misc import sh as teuth_sh
+
+        return teuth_sh(command=command, log_limit=log_limit, cwd=cwd,
+                        env=env)
 
 class LocalDaemon(object):
     def __init__(self, daemon_type, daemon_id):