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

Unified Diff: testing/legion/examples/subprocess/subprocess_test.py

Issue 960873002: Update from https://crrev.com/318214 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « testing/legion/examples/subprocess/subprocess_test.isolate ('k') | testing/legion/task_controller.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/legion/examples/subprocess/subprocess_test.py
diff --git a/testing/legion/examples/subprocess/subprocess_test.py b/testing/legion/examples/subprocess/subprocess_test.py
index 28e3fb8113ef8766c5a17be9e871a669dc4c4093..037780035e346b19ccafddac3b98d3a5097d4017 100755
--- a/testing/legion/examples/subprocess/subprocess_test.py
+++ b/testing/legion/examples/subprocess/subprocess_test.py
@@ -9,6 +9,7 @@
import sys
sys.path.append('../../')
+import argparse
import logging
import time
import xmlrpclib
@@ -25,10 +26,13 @@ class ExampleTestController(test_controller.TestController):
def SetUp(self):
"""Creates the task machine and waits until it connects."""
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--task-hash')
+ args, _ = parser.parse_known_args()
+
self.task = self.CreateNewTask(
- isolate_file='task.isolate',
- config_vars={'multi_machine': '1'},
- dimensions={'os': 'legion-linux'},
+ isolated_hash=args.task_hash,
+ dimensions={'os': 'Ubuntu-14.04', 'pool': 'Legion'},
idle_timeout_secs=90, connection_timeout_secs=90,
verbosity=logging.DEBUG)
self.task.Create()
« no previous file with comments | « testing/legion/examples/subprocess/subprocess_test.isolate ('k') | testing/legion/task_controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698