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

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

Issue 1364953003: Android: Change test timeout to 30 minutes instead of 15. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/local/device/local_device_gtest_run.py
diff --git a/build/android/pylib/local/device/local_device_gtest_run.py b/build/android/pylib/local/device/local_device_gtest_run.py
index 48941e9223b12dd28940e2bdd5d2bd8f15b17427..e3176e6ee248098f1bcfbbea4ec024c463cc6257 100644
--- a/build/android/pylib/local/device/local_device_gtest_run.py
+++ b/build/android/pylib/local/device/local_device_gtest_run.py
@@ -31,6 +31,9 @@ _EXTRA_TEST_LIST = (
_MAX_SHARD_SIZE = 256
_SECONDS_TO_NANOS = int(1e9)
+# The amount of time a test executable may run before it gets killed.
+_TEST_TIMEOUT_SECONDS = 30*60
+
# TODO(jbudorick): Move this up to the test instance if the net test server is
# handled outside of the APK for the remote_device environment.
_SUITE_REQUIRES_TEST_SERVER_SPAWNER = [
@@ -231,7 +234,7 @@ class LocalDeviceGtestRun(local_device_test_run.LocalDeviceTestRun):
#override
def _RunTest(self, device, test):
# Run the test.
- timeout = 900 * self.GetTool(device).GetTimeoutScale()
+ timeout = _TEST_TIMEOUT_SECONDS * self.GetTool(device).GetTimeoutScale()
output = self._delegate.Run(
test, device, timeout=timeout, retries=0)
for s in self._servers[str(device)]:
@@ -254,4 +257,3 @@ class LocalDeviceGtestRun(local_device_test_run.LocalDeviceTestRun):
s.TearDown()
self._env.parallel_devices.pMap(individual_device_tear_down)
-
« 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