Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: build/android/pylib/local/device/local_device_test_run.py

Issue 2596443004: [Android] Generate html file for test runner trace instead of json. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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):
+ # 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."""

Powered by Google App Engine
This is Rietveld 408576698