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

Unified Diff: build/android/pylib/local/device/local_device_instrumentation_test_run.py

Issue 2099323002: [Android] Prepare the test runner for @RetryOnFailure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
Index: build/android/pylib/local/device/local_device_instrumentation_test_run.py
diff --git a/build/android/pylib/local/device/local_device_instrumentation_test_run.py b/build/android/pylib/local/device/local_device_instrumentation_test_run.py
index d5426bc3e66d52eddf8b6e595e102d5aa0550782..ee6f7a45c2b8e4fde7419885ea3d7778e9737365 100644
--- a/build/android/pylib/local/device/local_device_instrumentation_test_run.py
+++ b/build/android/pylib/local/device/local_device_instrumentation_test_run.py
@@ -331,6 +331,17 @@ class LocalDeviceInstrumentationTestRun(
return results
#override
+ def _ShouldRetry(self, test):
+ if 'RetryOnFailure' in test.get('annotations', {}):
+ return True
+
+ # TODO(jbudorick): Remove this log message and switch the return value to
+ # False after tests have been annotated with @RetryOnFailure.
+ # See crbug.com/619055 for more details.
+ logging.warning('Default retries are being phased out. crbug.com/619055')
+ return True
+
+ #override
def _ShouldShard(self):
return True

Powered by Google App Engine
This is Rietveld 408576698