Merge pull request #5 from katlapinka/kasiat/rsync_timeout

Improve rsync timeout handling
This commit is contained in:
Daniel Madej 2024-09-04 11:38:18 +02:00 committed by GitHub
commit 0e22f4c0cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,10 +152,10 @@ class SshExecutor(BaseExecutor):
stderr=subprocess.PIPE,
timeout=timeout.total_seconds(),
)
except Exception as e:
TestRun.LOGGER.exception(
f"Exception occurred during rsync process. "
f"Please check your SSH key-based authentication.\n{e}"
except subprocess.TimeoutExpired as e:
raise TimeoutError(
f"Timeout exception occurred during rsync process. "
f"Please check whether copying big file did not reach command timeout.\n{e}"
)
if completed_process.returncode: