For series:
Reviewed-by: Juraj Linkeš <juraj.lin...@pantheon.tech>
On 24. 7. 2024 20:39, jspew...@iol.unh.edu wrote:
From: Jeremy Spewock <jspew...@iol.unh.edu>
v6:
* Fix error catch for retries. This series changed the error that
is thrown in the case of a timeout, but it was originally overlooked
that the context manager patch added a catch that is looking for the
old timeout error. This version fixes the patch by adjusting the
error that is expected in the context manager patch to match what
this series changes it to.
Here's the diff for anyone interested:
diff --git
a/dts/framework/remote_session/single_active_interactive_shell.py
b/dts/framework/remote_session/single_active_interactive_shell.py
index 7014444d0c..77a4dcefdf 100644
--- a/dts/framework/remote_session/single_active_interactive_shell.py
+++ b/dts/framework/remote_session/single_active_interactive_shell.py
@@ -150,7 +150,7 @@ def _start_application(self) -> None:
try:
self.send_command(start_command)
break
- except TimeoutError:
+ except InteractiveSSHTimeoutError:
self._logger.info(
f"Interactive shell failed to start (attempt
{attempt+1} out of "
f"{self._init_attempts})"
self.send_command raises InteractiveSSHTimeoutError (and not
TimeoutError) which is why we needed this change.
Jeremy Spewock (3):
dts: Improve output gathering in interactive shells
dts: Add missing docstring from XML-RPC server
dts: Improve logging for interactive shells
dts/framework/exception.py | 66 ++++++++++++-------
dts/framework/remote_session/dpdk_shell.py | 3 +-
.../single_active_interactive_shell.py | 60 ++++++++++++-----
dts/framework/remote_session/testpmd_shell.py | 2 +
.../testbed_model/traffic_generator/scapy.py | 50 +++++++++++++-
5 files changed, 139 insertions(+), 42 deletions(-)