From 49af8ce1d326c4c14354a101d3ae7157f22ae055 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 9 Apr 2018 14:58:01 +0100 Subject: [PATCH] framework/workload: Use installation timeout when pulling apk The `install_timeout` variable is used to allow extra time when installing an apk, if the apk is not present on the host system it will be pulled back to the host, therefore we should allow extra time when transferring the file in the other direction as well. --- wa/framework/workload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wa/framework/workload.py b/wa/framework/workload.py index a73621bb..fe023e2a 100644 --- a/wa/framework/workload.py +++ b/wa/framework/workload.py @@ -806,7 +806,8 @@ class PackageHandler(object): message = 'Cannot retrieve "{}" as not installed on Target' raise WorkloadError(message.format(package)) package_info = self.target.get_package_info(package) - self.target.pull(package_info.apk_path, self.owner.dependencies_directory) + self.target.pull(package_info.apk_path, self.owner.dependencies_directory, + timeout=self.install_timeout) apk_name = self.target.path.basename(package_info.apk_path) return os.path.join(self.owner.dependencies_directory, apk_name)