mbox series

[v2,0/5] node and inheritance improvements

Message ID 20240619133526.28614-1-juraj.linkes@pantheon.tech (mailing list archive)
Headers
Series node and inheritance improvements |

Message

Juraj Linkeš June 19, 2024, 1:35 p.m. UTC
There are two areas that are unified:
The super() calls, where the arguments were removed as they're not
needed in single inheritance.
The classes derived from object don't need to explicitly state that.

The tg node execution setup and teardown was omitted and is fixed in
this series.

And probably the most important part if the cleanup of execution and
build target setup and teardown. Build targets are relevant only for sut
nodes, so it's been moved there, same for vdevs. The execution
setup/teardown code was modified so that subclasses use super() to
extend the base methods.

v5:
Rebase on top of 32115 and add clean up close to the series.

Depends-on: series-32115 ("dts: rename execution to test run")

Juraj Linkeš (5):
  dts: add tg node test run setup and teardown
  dts: unify class inheritance from object
  dts: unify super calls
  dts: refine pre-test setup and teardown steps
  dts: clean up close in remote session

 .../remote_session/remote_session.py          | 21 ++----
 dts/framework/remote_session/ssh_session.py   | 11 ++--
 dts/framework/remote_session/testpmd_shell.py |  2 +-
 dts/framework/runner.py                       |  2 +
 dts/framework/test_result.py                  | 16 ++---
 dts/framework/test_suite.py                   |  2 +-
 dts/framework/testbed_model/cpu.py            |  4 +-
 dts/framework/testbed_model/node.py           | 66 ++-----------------
 dts/framework/testbed_model/os_session.py     | 12 ++--
 dts/framework/testbed_model/sut_node.py       | 53 ++++++++++-----
 dts/framework/testbed_model/tg_node.py        |  4 +-
 dts/framework/testbed_model/virtual_device.py |  2 +-
 dts/framework/utils.py                        |  4 +-
 13 files changed, 76 insertions(+), 123 deletions(-)
  

Comments

Thomas Monjalon June 20, 2024, 2:43 a.m. UTC | #1
> Juraj Linkeš (5):
>   dts: add tg node test run setup and teardown
>   dts: unify class inheritance from object
>   dts: unify super calls
>   dts: refine pre-test setup and teardown steps
>   dts: clean up close in remote session

Applied, thanks.