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

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

Issue 19021003: Fixes dispatch files to return exit codes in several places (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « build/android/pylib/browsertests/dispatch.py ('k') | build/android/pylib/instrumentation/dispatch.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/gtest/dispatch.py
diff --git a/build/android/pylib/gtest/dispatch.py b/build/android/pylib/gtest/dispatch.py
index cf30ffa69d13f3e74352d9aaccf1d6580eaf19cf..48b481666b77166326e46810554eb246e2f3ca0c 100644
--- a/build/android/pylib/gtest/dispatch.py
+++ b/build/android/pylib/gtest/dispatch.py
@@ -212,9 +212,11 @@ def Dispatch(options):
Returns:
base_test_result.TestRunResults object with the results of running the tests
"""
+ results = base_test_result.TestRunResults()
+
if options.test_suite == 'help':
_ListTestSuites()
- return 0
+ return (results, 0)
if options.use_xvfb:
framebuffer = xvfb.Xvfb()
@@ -222,7 +224,6 @@ def Dispatch(options):
all_test_suites = _FullyQualifiedTestSuites(options.exe, options.test_suite,
options.build_type)
- results = base_test_result.TestRunResults()
exit_code = 0
for suite_name, suite_path in all_test_suites:
# Give each test suite its own copy of options.
« no previous file with comments | « build/android/pylib/browsertests/dispatch.py ('k') | build/android/pylib/instrumentation/dispatch.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698