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

Unified Diff: scripts/slave/recipe_modules/bisect_tester/perf_test.py

Issue 1915183002: Setting --run-python-script flag for runtest.py invocation. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | scripts/slave/recipes/bisection/android_bisect.expected/basic_perf_tryjob_android_fyi_perf_bisect.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/bisect_tester/perf_test.py
diff --git a/scripts/slave/recipe_modules/bisect_tester/perf_test.py b/scripts/slave/recipe_modules/bisect_tester/perf_test.py
index 0c6f3147070eea41641f50a997cf0935d8a0308c..f6fd769579a16b8e0fb0a23570d6074f2a394568 100644
--- a/scripts/slave/recipe_modules/bisect_tester/perf_test.py
+++ b/scripts/slave/recipe_modules/bisect_tester/perf_test.py
@@ -199,12 +199,20 @@ def _run_command(api, command, step_name):
if 'android-chrome' in command: # pragma: no cover
kwargs['env'] = {'CHROMIUM_OUTPUT_DIR': api.m.chromium.output_dir}
+ run_python_command = False
+ if command_parts[0].startswith('python'): # pragma: no cover
+ # Handling case when dashboard sends python as the command (for windows).
+ command_parts = command_parts[1:]
+ run_python_command = True
+ elif _is_telemetry_command(command):
+ run_python_command = True
sullivan 2016/04/25 18:43:12 The code could use some more comments explaining e
RobertoCN 2016/04/25 19:34:31 Done.
try:
step_result = api.m.chromium.runtest(
test=_rebase_path(command_parts[0]),
args=command_parts[1:],
xvfb=True,
name=step_name,
+ python_mode=run_python_command,
stdout=stdout,
stderr=stderr,
**kwargs)
« no previous file with comments | « no previous file | scripts/slave/recipes/bisection/android_bisect.expected/basic_perf_tryjob_android_fyi_perf_bisect.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698