[PATCH v1 0/2] dts: add context manager for interactive shells

jspewock at iol.unh.edu jspewock at iol.unh.edu
Tue Jul 9 18:31:43 CEST 2024


From: Jeremy Spewock <jspewock at iol.unh.edu>

This series is extracted from an existing series that expands the
scatter test suite. The goal of this patch series is to take this
feature that would be useful to other test suites and extract it from
the scatter series that does not directly depend on it.

This series adds a context manager for managing interactive shells and
also adds improved methods of starting and stopping interactive shells
through features like a retry when starting the shell and a weakref
finalize class to handle garbage collection.

Jeremy Spewock (2):
  dts: add context manager for interactive shells
  dts: improve starting and stopping interactive shells

 dts/framework/remote_session/dpdk_shell.py    |   9 +-
 .../remote_session/interactive_shell.py       | 171 ++-----------
 .../single_active_interactive_shell.py        | 233 ++++++++++++++++++
 dts/framework/remote_session/testpmd_shell.py |   9 +-
 .../testbed_model/traffic_generator/scapy.py  |   2 +
 dts/tests/TestSuite_pmd_buffer_scatter.py     |  26 +-
 dts/tests/TestSuite_smoke_tests.py            |   3 +-
 7 files changed, 285 insertions(+), 168 deletions(-)
 create mode 100644 dts/framework/remote_session/single_active_interactive_shell.py

-- 
2.45.2



More information about the dev mailing list