Chromium Code Reviews| Index: build/android/pylib/local/device/local_device_test_run.py |
| diff --git a/build/android/pylib/local/device/local_device_test_run.py b/build/android/pylib/local/device/local_device_test_run.py |
| index 1d7ebdf802802258f1c5d275e0b60b69913db8f2..23bed4bbe1fe9be86d487ef7079599df7c2e600e 100644 |
| --- a/build/android/pylib/local/device/local_device_test_run.py |
| +++ b/build/android/pylib/local/device/local_device_test_run.py |
| @@ -16,6 +16,7 @@ from pylib.base import base_test_result |
| from pylib.base import test_run |
| from pylib.base import test_collection |
| from pylib.local.device import local_device_environment |
| +from tracing_build import trace2html |
| _SIGTERM_TEST_LOG = ( |
| @@ -203,6 +204,13 @@ class LocalDeviceTestRun(test_run.TestRun): |
| def _ShouldShard(self): |
| raise NotImplementedError |
| + @staticmethod |
| + def _JsonToTrace(json_path, save_path): |
|
mikecase (-- gone --)
2016/12/20 18:35:40
nit: maybe rename this to like
_JsonTraceToHTML ?
rnephew (Reviews Here)
2016/12/20 18:42:51
Done.
|
| + # First argument is call site. |
| + cmd = [__file__, json_path, '--title', 'Android Test Runner Trace', |
| + '--output', save_path] |
| + trace2html.Main(cmd) |
| + |
| class NoTestsError(Exception): |
| """Error for when no tests are found.""" |