Improve rsync timeout handling
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
parent
fcbce734de
commit
2b46a4e8c4
@ -152,10 +152,10 @@ class SshExecutor(BaseExecutor):
|
|||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
timeout=timeout.total_seconds(),
|
timeout=timeout.total_seconds(),
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except subprocess.TimeoutExpired as e:
|
||||||
TestRun.LOGGER.exception(
|
raise TimeoutError(
|
||||||
f"Exception occurred during rsync process. "
|
f"Timeout exception occurred during rsync process. "
|
||||||
f"Please check your SSH key-based authentication.\n{e}"
|
f"Please check whether copying big file did not reach command timeout.\n{e}"
|
||||||
)
|
)
|
||||||
|
|
||||||
if completed_process.returncode:
|
if completed_process.returncode:
|
||||||
|
Loading…
Reference in New Issue
Block a user