[PATCH for-10.0 0/5] tests/functional: Convert tests with find_free_ports()

Thomas Huth posted 5 patches 5 months ago
There is a newer version of this series
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
[PATCH for-10.0 0/5] tests/functional: Convert tests with find_free_ports()
Posted by Thomas Huth 5 months ago
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

-- 
2.47.0