From fd0556efa0fa3c2b851477e8ac9c1b8e9948ead7 Mon Sep 17 00:00:00 2001 From: machenbach Date: Fri, 10 Apr 2015 05:01:20 -0700 Subject: [PATCH] [test-runner] Make perf runner robust for missing executable. TBR=yangguo@chromium.org NOTRY=true NOTREECHECKS=true NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1080513002 Cr-Commit-Position: refs/heads/master@{#27743} --- tools/run_perf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/run_perf.py b/tools/run_perf.py index 84cc712..20a6537 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 -- 2.7.4