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

Unified Diff: build/android/pylib/test_result.py

Issue 11232037: Retry tests on other bots if the device is unresponsive/offline (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: small improvement Created 8 years, 2 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/test_result.py
diff --git a/build/android/pylib/test_result.py b/build/android/pylib/test_result.py
index 31a546acac8a4c6d33bdc32d3c82f582a411e800..00d139caf8e3592815adfdca218d0e2cad809a02 100644
--- a/build/android/pylib/test_result.py
+++ b/build/android/pylib/test_result.py
@@ -54,16 +54,18 @@ class TestResults(object):
self.unknown = []
self.timed_out = False
self.overall_fail = False
+ self.device_exception = None
@staticmethod
def FromRun(ok=None, failed=None, crashed=None, timed_out=False,
- overall_fail=False):
+ overall_fail=False, device_exception=None):
ret = TestResults()
ret.ok = ok or []
ret.failed = failed or []
ret.crashed = crashed or []
ret.timed_out = timed_out
ret.overall_fail = overall_fail
+ ret.device_exception = device_exception
return ret
@staticmethod
@@ -109,6 +111,10 @@ class TestResults(object):
results.failed.append(exc_result)
return results
+ @staticmethod
+ def DeviceExceptions(results):
+ return set(filter(lambda t: t.device_exception, results))
+
def _Log(self, sorted_list):
for t in sorted_list:
logging.critical(t.name)
« build/android/pylib/base_test_sharder.py ('K') | « build/android/pylib/test_package_apk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698