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

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

Issue 15942016: Creates a new test running script test_runner.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Several more fixes Created 7 years, 6 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/browsertests/dispatch.py
diff --git a/build/android/pylib/browsertests/dispatch.py b/build/android/pylib/browsertests/dispatch.py
index ce1bc5acc4be1dbf732a5d86136ae40be2e3051d..165f68ea870f2ad9b35b49ed37d0a990c1a72e58 100644
--- a/build/android/pylib/browsertests/dispatch.py
+++ b/build/android/pylib/browsertests/dispatch.py
@@ -61,9 +61,9 @@ def Dispatch(options):
# Get tests and split them up based on the number of devices.
all_enabled = gtest_dispatch.GetAllEnabledTests(RunnerFactory,
attached_devices)
- if options.gtest_filter:
+ if options.test_filter:
all_tests = unittest_util.FilterTestNames(all_enabled,
- options.gtest_filter)
+ options.test_filter)
else:
all_tests = _FilterTests(all_enabled)
@@ -84,6 +84,8 @@ def Dispatch(options):
flakiness_server=options.flakiness_dashboard_server)
report_results.PrintAnnotation(test_results)
+ return len(test_results.GetNotPass())
+
def _FilterTests(all_enabled_tests):
"""Filters out tests and fixtures starting with PRE_ and MANUAL_."""
return [t for t in all_enabled_tests if _ShouldRunOnBot(t)]

Powered by Google App Engine
This is Rietveld 408576698