Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Unified Diff: testing/legion/task_controller.py

Issue 1124763003: Update from https://crrev.com/327068 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update nacl, buildtools, fix display_change_notifier_unittest Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698