From 76032c1d05c3f04de5f1edebfa057ed4f11fa62a Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Fri, 13 Nov 2020 13:38:29 +0000 Subject: [PATCH] workloads/rt_app: Remove timeout in file transfer Remove the explict timeout when pushing to the device. Allow the polling mechanims to monitor the transfer if required. --- wa/workloads/rt_app/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wa/workloads/rt_app/__init__.py b/wa/workloads/rt_app/__init__.py index 9b2a0361..c4eccb58 100644 --- a/wa/workloads/rt_app/__init__.py +++ b/wa/workloads/rt_app/__init__.py @@ -162,7 +162,7 @@ class RtApp(Workload): self.host_json_config = self._load_json_config(context) self.config_file_on_target = self.target.path.join(self.target_working_directory, os.path.basename(self.host_json_config)) - self.target.push(self.host_json_config, self.config_file_on_target, timeout=60) + self.target.push(self.host_json_config, self.config_file_on_target) self.command = '{} {}'.format(self.target_binary, self.config_file_on_target) time_buffer = 30 @@ -284,7 +284,7 @@ class RtApp(Workload): self.target.execute(tar_command, timeout=300) target_path = self.target.path.join(self.target_working_directory, TARBALL_FILENAME) host_path = os.path.join(context.output_directory, TARBALL_FILENAME) - self.target.pull(target_path, host_path, timeout=120) + self.target.pull(target_path, host_path) with tarfile.open(host_path, 'r:gz') as tf: tf.extractall(context.output_directory) os.remove(host_path)