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

Unified Diff: scripts/slave/goma_utils.py

Issue 1802243002: Should have sys.executable, or won't run on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/goma_utils.py
diff --git a/scripts/slave/goma_utils.py b/scripts/slave/goma_utils.py
index 1a229368f769c24cd9358911955ba16523d251aa..671a1be2ef93c09f91c30852a5195c2de512a25c 100644
--- a/scripts/slave/goma_utils.py
+++ b/scripts/slave/goma_utils.py
@@ -318,7 +318,12 @@ def SendGomaTsMon(json_file, exit_status):
if start_time:
counter['start_time'] = int(
(start_time - datetime.datetime.fromtimestamp(0)).total_seconds())
- cmd = [PLATFORM_RUN_CMD.get(os.name),
+ run_cmd = PLATFORM_RUN_CMD.get(os.name)
+ if not run_cmd:
+ print 'Unknown os.name: %s' % os.name
+ return
+ cmd = [sys.executable,
+ run_cmd,
'infra.tools.send_ts_mon_values', '--verbose',
'--ts-mon-target-type', 'task',
'--ts-mon-task-service-name', 'goma-client',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698