Index: build/android/test_result.py |
diff --git a/build/android/test_result.py b/build/android/test_result.py |
index 0c564368a133f7f4d383f4df6cb6c0e1445f7217..a8a7914e14802a5e0c148dd3d22889ea2ed9bc67 100644 |
--- a/build/android/test_result.py |
+++ b/build/android/test_result.py |
@@ -58,13 +58,15 @@ class TestResults(object): |
self.disabled = [] |
self.unexpected_pass = [] |
self.timed_out = False |
+ self.overall_fail = False |
@staticmethod |
- def FromOkAndFailed(ok, failed, timed_out=False): |
+ def FromOkAndFailed(ok, failed, timed_out, overall_fail): |
ret = TestResults() |
ret.ok = ok |
ret.failed = failed |
ret.timed_out = timed_out |
+ ret.overall_fail = overall_fail |
return ret |
@staticmethod |
@@ -80,6 +82,8 @@ class TestResults(object): |
ret.unexpected_pass += t.unexpected_pass |
if t.timed_out: |
ret.timed_out = True |
+ if t.overall_fail: |
+ ret.overall_fail = True |
return ret |
def _Log(self, sorted_list): |