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

Unified Diff: build/android/pylib/gtest/dispatch.py

Issue 12544033: [Android] Rewrite base test result classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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/gtest/dispatch.py
diff --git a/build/android/pylib/gtest/dispatch.py b/build/android/pylib/gtest/dispatch.py
index 3020947a9d6152ce8d238772faf73fa3dc191c0e..b02331a7d17248e4818c59633f42768124e7a0f2 100644
--- a/build/android/pylib/gtest/dispatch.py
+++ b/build/android/pylib/gtest/dispatch.py
@@ -13,6 +13,7 @@ from pylib import constants
from pylib import ports
from pylib.base import shard
from pylib.utils import emulator
+from pylib.utils import report_results
from pylib.utils import xvfb
import gtest_config
@@ -165,17 +166,18 @@ def _RunATestSuite(options, suite_name):
test_results = shard.ShardAndRunTests(RunnerFactory, attached_devices, tests,
options.build_type)
- test_results.LogFull(
+ report_results.LogFull(
+ results=test_results,
test_type='Unit test',
test_package=suite_name,
build_type=options.build_type,
flakiness_server=options.flakiness_dashboard_server)
- test_results.PrintAnnotation()
+ report_results.PrintAnnotation(test_results)
for buildbot_emulator in buildbot_emulators:
buildbot_emulator.Shutdown()
- return len(test_results.GetAllBroken())
+ return len(test_results.GetNotPass())
def _ListTestSuites():

Powered by Google App Engine
This is Rietveld 408576698