]> git.proxmox.com Git - mirror_qemu.git/commit
tests/qtest: Allow qtest_qemu_binary to use a custom environment variable
authorFabiano Rosas <farosas@suse.de>
Wed, 18 Oct 2023 19:27:30 +0000 (16:27 -0300)
committerJuan Quintela <quintela@redhat.com>
Fri, 20 Oct 2023 06:51:41 +0000 (08:51 +0200)
commitf4a7b30fcd5b60ca9b0215f9a6fa1faf9bd73f7b
treeffc4828509d20f12a7ae46a207471c238562d148
parent175e63c9829f9887c04bed8e0c4906e1166c9a87
tests/qtest: Allow qtest_qemu_binary to use a custom environment variable

We're adding support for testing migration using two different QEMU
binaries. We'll provide the second binary in a new environment
variable.

Allow qtest_qemu_binary() to receive the name of the new variable. If
the new environment variable is not set, that's not an error, we use
QTEST_QEMU_BINARY as a fallback.

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-2-farosas@suse.de>
tests/qtest/libqtest.c