diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-09-30 11:09:32 +0200 |
|---|---|---|
| committer | Fabiano Rosas <farosas@suse.de> | 2025-10-01 17:09:21 -0300 |
| commit | bfa07595eb6652a3b2599bb2eb3a82f14f75497b (patch) | |
| tree | bfdaf2356dfca7fc59ffaefbff8d9d29f2c17afb /tests/qtest/migration/framework.h | |
| parent | 030cd885563e9ca843a46ec7e65b657c93df5af7 (diff) | |
| download | focaccia-qemu-bfa07595eb6652a3b2599bb2eb3a82f14f75497b.tar.gz focaccia-qemu-bfa07595eb6652a3b2599bb2eb3a82f14f75497b.zip | |
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>
Diffstat (limited to 'tests/qtest/migration/framework.h')
| -rw-r--r-- | tests/qtest/migration/framework.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/migration/framework.h b/tests/qtest/migration/framework.h index 01e425e64e..744040d53a 100644 --- a/tests/qtest/migration/framework.h +++ b/tests/qtest/migration/framework.h @@ -227,7 +227,7 @@ void migrate_end(QTestState *from, QTestState *to, bool test_dest); void test_postcopy_common(MigrateCommon *args); void test_postcopy_recovery_common(MigrateCommon *args); -void test_precopy_common(MigrateCommon *args); +int test_precopy_common(MigrateCommon *args); void test_file_common(MigrateCommon *args, bool stop_src); void *migrate_hook_start_precopy_tcp_multifd_common(QTestState *from, QTestState *to, |