]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/qtest/migration: Fix cpr-tests in case the machine is not available
authorThomas Huth <thuth@redhat.com>
Tue, 30 Sep 2025 09:09:32 +0000 (11:09 +0200)
committerFabiano Rosas <farosas@suse.de>
Wed, 1 Oct 2025 20:09:21 +0000 (17:09 -0300)
commitbfa07595eb6652a3b2599bb2eb3a82f14f75497b
treebfdaf2356dfca7fc59ffaefbff8d9d29f2c17afb
parent030cd885563e9ca843a46ec7e65b657c93df5af7
tests/qtest/migration: Fix cpr-tests in case the machine is not available

When QEMU has been compiled with "--without-default-devices", the
migration cpr-tests are currently failing since the first test leaves
a socket file behind that avoids that the second test can be initialized
correctly. Make sure that we delete the socket file in case that the
migrate_start() failed due to the missing machine.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250930090932.235151-1-thuth@redhat.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/migration/cpr-tests.c
tests/qtest/migration/framework.c
tests/qtest/migration/framework.h