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

Unified Diff: infra/scripts/runtest_wrapper.py

Issue 1354223004: Run telemetry_gpu_unittests via isolate on "Linux Tests" and trybot. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up debug printing Created 5 years, 3 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: infra/scripts/runtest_wrapper.py
diff --git a/infra/scripts/runtest_wrapper.py b/infra/scripts/runtest_wrapper.py
index fe9835f3bf401773b545420dd8f05374044d2bc1..aea8ec99bb8bedf2b8a175325bba430635386266 100755
--- a/infra/scripts/runtest_wrapper.py
+++ b/infra/scripts/runtest_wrapper.py
@@ -22,8 +22,12 @@ def main(argv):
# TODO(phajdan.jr): Remove after cleaning up build repo side.
parser.add_argument(
'--path-build', help='Path to the build repo')
- parser.add_argument('args', nargs='*', help='Arguments to pass to runtest.py')
+ parser.add_argument('args', nargs=argparse.REMAINDER,
+ help='Arguments to pass to runtest.py')
args = parser.parse_args(argv)
+ runtest_args = args.args
+ if runtest_args[0] == '--':
Paweł Hajdan Jr. 2015/09/24 14:29:22 Wait, why is this logic needed? I wouldn't mind t
nednguyen 2015/09/24 15:54:54 To use the isolate_script_test, we need to add the
+ runtest_args.pop(0)
env = copy.copy(os.environ)
# Reset PYTHONPATH to make sure we're not accidentally using
@@ -42,7 +46,7 @@ def main(argv):
sys.executable,
os.path.join(SRC_DIR, 'infra', 'scripts', 'legacy',
'scripts', 'slave', 'runtest.py')
- ] + args.args, env=env)
+ ] + runtest_args, env=env)
if __name__ == '__main__':

Powered by Google App Engine
This is Rietveld 408576698