Skip to content

tests/acceptance: Introducing the ConsoleMixIn

Wainer dos Santos Moschetta qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tests/acceptance: Introduce the ConsoleMixIn classtests/acceptance/avocado_qemu/__init__.py tests/acceptance/boot_linux_console.py+31 -311 reply
2/7tests/acceptance: Move exec_command to ConsoleMixIntests/acceptance/avocado_qemu/__init__.py tests/acceptance/multiprocess.py+13 -151 reply
3/7tests/acceptance: Move exec_command_and_wait_for_pattern to ConsoleMixIntests/acceptance/avocado_qemu/__init__.py tests/acceptance/boot_linux_console.py tests/acceptance/machine_rx_gdbsim.py +3 more+111 -1201 reply
4/7tests/acceptance: Sun4uMachine: Remove dependency to LinuxKernelTesttests/acceptance/machine_sparc64_sun4u.py+5 -64 replies
5/7tests/acceptance: replay_kernel: Remove unused wait_for_console_patterntests/acceptance/replay_kernel.py+0 -11 reply
6/7tests/acceptance: Move wait_for_console_pattern to ConsoleMixIntests/acceptance/avocado_qemu/__init__.py tests/acceptance/boot_linux_console.py tests/acceptance/boot_xen.py +16 more+73 -811 reply
7/7tests/acceptance: Move _console_interaction to ConsoleMixIntests/acceptance/avocado_qemu/__init__.py+28 -291 reply

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchWillian Rampazzo
1/7
2/7
3/7
4/7R-b
5/7R-b
6/7
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] tests/acceptance: Introducing the ConsoleMixIn

The avocado_qemu package provides the following methods to interact with the guest via console, which are mainly used on the acceptance boot tests:

exec_command(), exec_command_and_wait_for_pattern(), wait_for_console_pattern(), interrupt_interactive_console_until_pattern()

Those methods are loosely defined in avocado_qemu/__init__.py. Because that file is expected to grow, I thought that for the sake of keeping it organized it would be better to logically group them. So in this series I create the ConsoleMixIn class to be the new home for the console methods. An alternative approach could be to create a separated package, however because they are just a few methods at the moment, I prefered not to break avocado_qemu into smaller pieces.

As the "MixIn" in the name implies, the class is meant to be used as a mixin on the test class. Here I am following an idea introduced by Cleber in [1].

This series was tested on CI (https://gitlab.com/wainersm/qemu/-/pipelines/296412039)

[1] http://next.patchew.org/QEMU/[email protected]/

Wainer dos Santos Moschetta (7):
tests/acceptance: Introduce the ConsoleMixIn class tests/acceptance: Move exec_command to ConsoleMixIn tests/acceptance: Move exec_command_and_wait_for_pattern to
ConsoleMixIn
tests/acceptance: Sun4uMachine: Remove dependency to LinuxKernelTest tests/acceptance: replay_kernel: Remove unused
wait_for_console_pattern
tests/acceptance: Move wait_for_console_pattern to ConsoleMixIn tests/acceptance: Move _console_interaction to ConsoleMixIn

 tests/acceptance/avocado_qemu/__init__.py    | 161 +++++++++----------
 tests/acceptance/boot_linux_console.py       | 133 ++++++++-------
 tests/acceptance/boot_xen.py                 |   5 +-
 tests/acceptance/linux_ssh_mips_malta.py     |   8 +-
 tests/acceptance/machine_arm_canona1100.py   |   6 +-
 tests/acceptance/machine_arm_integratorcp.py |   8 +-
 tests/acceptance/machine_arm_n8x0.py         |   6 +-
 tests/acceptance/machine_microblaze.py       |   8 +-
 tests/acceptance/machine_mips_loongson3v.py  |   6 +-
 tests/acceptance/machine_mips_malta.py       |   6 +-
 tests/acceptance/machine_ppc.py              |  10 +-
 tests/acceptance/machine_rx_gdbsim.py        |  15 +-
 tests/acceptance/machine_s390_ccw_virtio.py  |  79 +++++----
 tests/acceptance/machine_sparc64_sun4u.py    |  13 +-
 tests/acceptance/machine_sparc_leon3.py      |   8 +-
 tests/acceptance/multiprocess.py             |  14 +-
 tests/acceptance/ppc_prep_40p.py             |  16 +-
 tests/acceptance/replay_kernel.py            |   1 -
 tests/acceptance/virtio-gpu.py               |  16 +-
 tests/acceptance/virtiofs_submounts.py       |   1 -
 20 files changed, 249 insertions(+), 271 deletions(-)
Signature · 1 line
2.29.2