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

Unified Diff: tools/run_perf.py

Issue 1080513002: [test-runner] Make perf runner robust for missing executable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/run_perf.py
diff --git a/tools/run_perf.py b/tools/run_perf.py
index 84cc712308c60c7fb45b02067f6ddb347e15457b..20a6537990ac8330b87c65a27841ad087e220088 100755
--- a/tools/run_perf.py
+++ b/tools/run_perf.py
@@ -486,8 +486,13 @@ class DesktopPlatform(Platform):
node.ChangeCWD(path)
def Run(self, runnable, count):
- output = commands.Execute(runnable.GetCommand(self.shell_dir),
- timeout=runnable.timeout)
+ try:
+ output = commands.Execute(runnable.GetCommand(self.shell_dir),
+ timeout=runnable.timeout)
+ except OSError as e:
+ print ">>> OSError (#%d):" % (count + 1)
+ print e
+ return ""
print ">>> Stdout (#%d):" % (count + 1)
print output.stdout
if output.stderr: # pragma: no cover
« 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