[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}
This commit is contained in:
machenbach 2015-04-10 05:01:20 -07:00 committed by Commit bot
parent 052924abe3
commit fd0556efa0

View File

@ -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