Chromium Code Reviews| 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 991fc003049152246d89d15f290b88c8c1b228c9..b89aa745c8d18ac38c066362899e8ce631c6a8a8 100644 |
| --- a/build/android/pylib/perf/test_runner.py |
| +++ b/build/android/pylib/perf/test_runner.py |
| @@ -233,8 +233,15 @@ class TestRunner(base_test_runner.BaseTestRunner): |
| return '' |
| json_output_path = os.path.join(self._output_dir, 'results-chart.json') |
| - with open(json_output_path) as f: |
| - return f.read() |
| + try: |
| + with open(json_output_path) as f: |
| + return f.read() |
| + except IOError, e: |
| + logging.exception('Exception when reading chartjson: %s', e) |
|
jbudorick
2015/06/09 20:00:59
logging.exception automatically logs the exception
shatch
2015/06/09 20:33:47
Done.
|
| + logging.error('This usually means that telemetry did not run, so it could' |
| + ' not generate the file. Please check the device running' |
| + ' the test.') |
| + return '' |
| def _LaunchPerfTest(self, test_name): |
| """Runs a perf test. |