Index: testing/legion/task_controller.py |
diff --git a/testing/legion/task_controller.py b/testing/legion/task_controller.py |
index df9ddbdeb56370b26b6e08e974fc59050a17edea..9514f44fddd89a0ad6dae6b67ccc4b086417d37a 100644 |
--- a/testing/legion/task_controller.py |
+++ b/testing/legion/task_controller.py |
@@ -17,6 +17,7 @@ import xmlrpclib |
#pylint: disable=relative-import |
import common_lib |
+import process |
ISOLATE_PY = os.path.join(common_lib.SWARMING_DIR, 'isolate.py') |
SWARMING_PY = os.path.join(common_lib.SWARMING_DIR, 'swarming.py') |
@@ -125,6 +126,10 @@ class TaskController(object): |
for task in cls._tasks: |
task.Release() |
+ def Process(self, cmd, verbose=False, detached=False, cwd=None): |
+ return process.ControllerProcessWrapper( |
+ self.rpc, cmd, verbose, detached, cwd) |
+ |
def _CreateOTP(self): |
"""Creates the OTP.""" |
controller_name = socket.gethostname() |