[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:
parent
052924abe3
commit
fd0556efa0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user