]> git.proxmox.com Git - mirror_qemu.git/commit
tests/qtest: Allow qtest_get_machines to use an alternate QEMU binary
authorFabiano Rosas <farosas@suse.de>
Wed, 18 Oct 2023 19:27:32 +0000 (16:27 -0300)
committerJuan Quintela <quintela@redhat.com>
Fri, 20 Oct 2023 06:51:41 +0000 (08:51 +0200)
commit41b2eba4e5c480b8515db60f23b0cb5eeae0dc50
tree73b1baf146aba0fef4b27c205479f97395a44205
parent9931215bd33b640dcc824e07431e67e6ddb6b1e1
tests/qtest: Allow qtest_get_machines to use an alternate QEMU binary

We're adding support for using more than one QEMU binary in
tests. Modify qtest_get_machines() to take an environment variable
that contains the QEMU binary path.

Since the function keeps a cache of the machines list in the form of a
static variable, refresh it any time the environment variable changes.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231018192741.25885-4-farosas@suse.de>
tests/qtest/libqtest.c