qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH for-10.0 0/5] tests/functional: Convert tests with find_free_ports()
Date: Wed,  4 Dec 2024 08:19:06 +0100	[thread overview]
Message-ID: <20241204071911.664057-1-thuth@redhat.com> (raw)

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



             reply	other threads:[~2024-12-04  7:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-04  7:19 Thomas Huth [this message]
2024-12-04  7:19 ` [PATCH 1/5] tests/functional: Convert the vnc test Thomas Huth
2024-12-04  7:19 ` [PATCH 2/5] tests/functional: Extract the find_free_ports() function into a helper file Thomas Huth
2024-12-04 10:41   ` Daniel P. Berrangé
2024-12-06 15:53     ` Thomas Huth
2024-12-04 10:46   ` Daniel P. Berrangé
2024-12-06 15:56     ` Thomas Huth
2024-12-04  7:19 ` [PATCH 3/5] tests/functional/test_vnc: Do not use a hard-coded VNC port Thomas Huth
2024-12-04  7:19 ` [PATCH 4/5] tests/functional/test_vnc: Remove the test_no_vnc test Thomas Huth
2024-12-04 10:42   ` Daniel P. Berrangé
2024-12-04  7:19 ` [PATCH 5/5] tests/functional: Convert the migration avocado test Thomas Huth
2024-12-04  8:27   ` Thomas Huth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241204071911.664057-1-thuth@redhat.com \
    --to=thuth@redhat.com \
    --cc=berrange@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).