summaryrefslogtreecommitdiff
path: root/dts/framework/remote_session/testpmd_shell.py
diff options
context:
space:
mode:
authorJeremy Spewock <[email protected]>2024-07-24 14:39:14 -0400
committerThomas Monjalon <[email protected]>2024-07-29 18:55:08 +0200
commit65a1b4e8827d5e0df2378f6754834cc06c1bc110 (patch)
tree6eaffc5b51419259c5f29ef0a3051fdb502ffa48 /dts/framework/remote_session/testpmd_shell.py
parentd30bb3083f05bc9d2fae5366c34b4791c2798a0f (diff)
dts: improve logging for interactive shells
The messages being logged by interactive shells currently are using the same logger as the node they were created from. Because of this, when sending interactive commands, the logs make no distinction between when you are sending a command directly to the host and when you are using an interactive shell on the host. This change adds names to interactive shells so that they are able to use their own loggers with distinct names. Signed-off-by: Jeremy Spewock <[email protected]> Reviewed-by: Juraj Linkeš <[email protected]> Tested-by: Nicholas Pratte <[email protected]> Reviewed-by: Nicholas Pratte <[email protected]> Reviewed-by: Luca Vizzarro <[email protected]>
Diffstat (limited to 'dts/framework/remote_session/testpmd_shell.py')
-rw-r--r--dts/framework/remote_session/testpmd_shell.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remote_session/testpmd_shell.py
index eda6eb320f..43e9f56517 100644
--- a/dts/framework/remote_session/testpmd_shell.py
+++ b/dts/framework/remote_session/testpmd_shell.py
@@ -604,6 +604,7 @@ class TestPmdShell(DPDKShell):
lcore_filter_specifier: LogicalCoreCount | LogicalCoreList = LogicalCoreCount(),
ascending_cores: bool = True,
append_prefix_timestamp: bool = True,
+ name: str | None = None,
**app_params: Unpack[TestPmdParamsDict],
) -> None:
"""Overrides :meth:`~.dpdk_shell.DPDKShell.__init__`. Changes app_params to kwargs."""
@@ -615,6 +616,7 @@ class TestPmdShell(DPDKShell):
ascending_cores,
append_prefix_timestamp,
TestPmdParams(**app_params),
+ name,
)
def start(self, verify: bool = True) -> None: