A fix for functional patches
[PULL 1/1] tests/functional: fix querying available machines
In reply to Thomas HuthFrom: Vladimir Sementsov-Ogievskiy <[email protected]>
Aliases are not handled, and that's why tests used them are skipped, like this:
PYTHONPATH=python:tests/functional \
QEMU_TEST_QEMU_BINARY=$PWD/build/qemu-system-x86_64 \
MESON_BUILD_ROOT=$PWD/build \
./build/pyvenv/bin/python3 tests/functional/x86_64/test_hotplug_blk.pyTAP version 13
ok 1 test_hotplug_blk.HotPlugBlk.test # SKIP no support for machine q35 1..1
Message-ID: <[email protected]>
--- tests/functional/qemu_test/testcase.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
tests/functional/qemu_test/testcase.py +6 -3
@@ -325,9 +325,12 @@ def set_machine(self, machinename): resp = tmp_vm.qmp('query-machines') machines = resp.get('return', []) - cls._machines = [ - m.get('name') for m in machines if 'name' in m - ] + cls._machines = [] + for m in machines: + if 'name' in m: + cls._machines.append(m['name']) + if 'alias' in m: + cls._machines.append(m['alias']) finally: try:
Signature · 1 line
2.54.0
Hi Stefan!
The following changes since commit a759542a2c62f0fd3b65f5a66ad9868201014669:
Merge tag 'pull-lu-20260710' of https://gitlab.com/rth7680/qemu into staging (2026-07-11 07:15:53 +0200)
are available in the Git repository at:
https://gitlab.com/huth/qemu.git tags/pull-request-2026-07-12
for you to fetch changes up to 1531b9ec8c2e7033cbb737e2428827677be0a1b0:
tests/functional: fix querying available machines (2026-07-12 10:12:17 +0200)
----------------------------------------------------------------
* Fix functional tests to take aliased machine names into account again
----------------------------------------------------------------
Vladimir Sementsov-Ogievskiy (1):
tests/functional: fix querying available machines
tests/functional/qemu_test/testcase.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
Quoted 2 lines · Thomas Huth
Hi Stefan!
Hi Thomas,
This pull request is from [email protected] and your GPG key on keys.openpgp.org doesn't cover this email address. Please update your GPG key or let me know where I can find your new key.
Thanks!
Stefan
Am Sun, 12 Jul 2026 15:43:58 +0200
schrieb Stefan Hajnoczi <[email protected]>:
Quoted 8 lines · Thomas Huth
Quoted 2 lines
Hi Stefan!
Hi Thomas,
This pull request is from [email protected] and your GPG key on keys.openpgp.org doesn't cover this email address. Please update your GPG key or let me know where I can find your new key.
Ah, drat, I pushed the key via "gpg" on the command line to the server, but that's not enough on keys.openpgp.org, you've got to manually verify new mail addresses there. Should be fixed now, please try again!
Thanks,
Thomas
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/11.1 for any user-visible changes.