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

Unified Diff: testing/scripts/common.py

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/scripts/OWNERS ('k') | testing/scripts/telemetry_perf_unittests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/scripts/common.py
diff --git a/testing/scripts/common.py b/testing/scripts/common.py
index 47e7fb7fd1a223c103c33e6f53bea9003e58db5a..1afbe6b96fe4d7c0ec4d78bd476d0d5a661241e8 100644
--- a/testing/scripts/common.py
+++ b/testing/scripts/common.py
@@ -7,6 +7,7 @@ import contextlib
import json
import os
import subprocess
+import sys
import tempfile
@@ -55,6 +56,21 @@ def run_command(argv):
return rc
+def run_runtest(cmd_args, runtest_args):
+ return run_command([
+ sys.executable,
+ os.path.join(cmd_args.paths['build'], 'scripts', 'tools', 'runit.py'),
+ '--show-path',
+ sys.executable,
+ os.path.join(cmd_args.paths['build'], 'scripts', 'slave', 'runtest.py'),
+ '--target', cmd_args.build_config_fs,
+ '--xvfb',
+ '--builder-name', cmd_args.properties['buildername'],
+ '--slave-name', cmd_args.properties['slavename'],
+ '--build-number', str(cmd_args.properties['buildnumber']),
+ ] + runtest_args)
+
+
@contextlib.contextmanager
def temporary_file():
fd, path = tempfile.mkstemp()
« no previous file with comments | « testing/scripts/OWNERS ('k') | testing/scripts/telemetry_perf_unittests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698