Skip to content

tests/functional: Convert tests with find_free_ports()

Thomas Huth qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tests/functional: Convert the vnc testtests/functional/meson.build tests/functional/test_vnc.py+8 -50 replies
2/5tests/functional: Extract the find_free_ports() function into a helper filetests/functional/qemu_test/ports.py tests/functional/test_vnc.py+61 -284 replies
3/5tests/functional/test_vnc: Do not use a hard-coded VNC porttests/functional/test_vnc.py+15 -40 replies
4/5tests/functional/test_vnc: Remove the test_no_vnc testtests/functional/test_vnc.py+0 -51 reply
5/5tests/functional: Convert the migration avocado testtests/avocado/migration.py tests/functional/meson.build tests/functional/test_migration.py+102 -1351 reply

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéDaniel P. Berrangé
1/5R-b T-b
2/5
3/5
4/5R-b
5/5

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 for-10.0 0/5] tests/functional: Convert tests with find_free_ports()

Convert the vnc and migration test that use a find_free_ports() function to look for a free port. Since the functional tests can be run in parallel, we extract the find_free_ports() function into a helper and provide a locking mechanism so that the tests don't race for the free ports (see second patch).

Thomas Huth (5):
tests/functional: Convert the vnc test
tests/functional: Extract the find_free_ports() function into a helper
file
tests/functional/test_vnc: Do not use a hard-coded VNC port tests/functional/test_vnc: Remove the test_no_vnc test tests/functional: Convert the migration avocado test

 tests/avocado/migration.py                    | 135 ------------------
 tests/functional/meson.build                  |  20 +++
 tests/functional/qemu_test/ports.py           |  53 +++++++
 tests/functional/test_migration.py            |  83 +++++++++++
 .../vnc.py => functional/test_vnc.py}         |  70 ++++-----
 5 files changed, 185 insertions(+), 176 deletions(-)
 delete mode 100644 tests/avocado/migration.py
 create mode 100644 tests/functional/qemu_test/ports.py
 create mode 100755 tests/functional/test_migration.py
 rename tests/{avocado/vnc.py => functional/test_vnc.py} (74%)
 mode change 100644 => 100755
Signature · 1 line
2.47.0