Index: build/android/pylib/host_driven/run_python_tests.py |
diff --git a/build/android/pylib/host_driven/run_python_tests.py b/build/android/pylib/host_driven/run_python_tests.py |
index e36df0c5938eff8e19b46f4ce3f5aab416d0ae60..30a63121c03dea84c63428bf2c054354e3d7366e 100644 |
--- a/build/android/pylib/host_driven/run_python_tests.py |
+++ b/build/android/pylib/host_driven/run_python_tests.py |
@@ -105,7 +105,10 @@ def DispatchPythonTests(options): |
sharder = PythonTestSharder(attached_devices, available_tests, options) |
test_results = sharder.RunShardedTests() |
- return test_results |
+ if not test_results.DidRunPass(): |
+ return (test_results, 1) |
+ |
+ return (test_results, 0) |
def _GetTestModules(python_test_root, is_official_build): |