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

Unified Diff: build/android/pylib/base/base_test_sharder.py

Issue 12207172: Change Android retry logic - always retry 3 times. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/base/base_test_sharder.py
diff --git a/build/android/pylib/base/base_test_sharder.py b/build/android/pylib/base/base_test_sharder.py
index 5ff9b6209afa360d8898450feae9ec7b93d74cad..be221987528645fed12a790ad0be70879fabe07f 100644
--- a/build/android/pylib/base/base_test_sharder.py
+++ b/build/android/pylib/base/base_test_sharder.py
@@ -11,6 +11,10 @@ from pylib.base.test_result import TestResults
from pylib.forwarder import Forwarder
+# Number of times we retry a test suite in case of failure.
+NUM_RETRIES = 3
+
+
def _ShardedTestRunnable(test):
"""Standalone function needed by multiprocessing.Pool."""
log_format = '[' + test.device + '] # %(asctime)-15s: %(message)s'
@@ -54,7 +58,7 @@ class BaseTestSharder(object):
# We should differentiate between these. Otherwise, blindly retrying tests
# might mask test/product flakiness. For type 2, we should follow the
# general chrome best practices.
- self.retries = len(self.attached_devices)
+ self.retries = NUM_RETRIES
self.tests = []
self.build_type = build_type
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698