From 920d80ad6e45d3703bb63fa091ecfee3ef10fd51 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Wed, 19 Jul 2017 09:43:55 +0100 Subject: [PATCH] AndroidDevice: adjust APK install timeout to 5min install_apk() was using the default timeout of 30 seconds, this can cause problems for some applications on slower targets. Since installation is expected to be a long-ish operation, there is not reason for the timeout to be this short. This commit adjusts the timeout to 5 minutes, which should be a more reasonable value for most applications. For some apps with particularly large APKs, this may not be enough, but in those cases, the default should already be overriden on per-worload bases. --- wlauto/common/android/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/common/android/device.py b/wlauto/common/android/device.py index 2e9abcfc..250b6c04 100644 --- a/wlauto/common/android/device.py +++ b/wlauto/common/android/device.py @@ -390,7 +390,7 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223 else: return self.install_executable(filepath, with_name) - def install_apk(self, filepath, timeout=default_timeout, replace=False, allow_downgrade=False): # pylint: disable=W0221 + def install_apk(self, filepath, timeout=300, replace=False, allow_downgrade=False): # pylint: disable=W0221 self._check_ready() ext = os.path.splitext(filepath)[1].lower() if ext == '.apk':