Index: build/android/pylib/perf/test_runner.py |
diff --git a/build/android/pylib/perf/test_runner.py b/build/android/pylib/perf/test_runner.py |
index e648853ee29fd6760bd39d4a4276a4e8b3356c06..d74499f704850588a755ea79fb3d9930772a6f78 100644 |
--- a/build/android/pylib/perf/test_runner.py |
+++ b/build/android/pylib/perf/test_runner.py |
@@ -240,6 +240,9 @@ class TestRunner(base_test_runner.BaseTestRunner): |
try: |
exit_code, output = cmd_helper.GetCmdStatusAndOutputWithTimeout( |
full_cmd, timeout, cwd=cwd, shell=True, logfile=logfile) |
+ except cmd_helper.TimeoutError as e: |
+ exit_code = -1 |
+ output = str(e) |
finally: |
if self._options.single_step: |
logfile.stop() |