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)] |