]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/qtest/migration: Use defer for auto-converge
authorFabiano Rosas <farosas@suse.de>
Tue, 5 May 2026 16:09:11 +0000 (13:09 -0300)
committerPeter Xu <peterx@redhat.com>
Wed, 20 May 2026 19:41:33 +0000 (15:41 -0400)
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20260505160915.25558-13-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
tests/qtest/migration/precopy-tests.c

index 246f9fd555c9fccb8013e2ad301d8cc47c21a330..bf01fde8b2a211fe9e78881bd583010539210c02 100644 (file)
@@ -268,7 +268,7 @@ static void test_auto_converge(char *name, MigrateCommon *args)
     int64_t percentage;
     const int64_t init_pct = 5, inc_pct = 25, max_pct = 95;
 
-    if (migrate_start(&from, &to, uri, &args->start)) {
+    if (migrate_start(&from, &to, "defer", &args->start)) {
         return;
     }
 
@@ -284,6 +284,7 @@ static void test_auto_converge(char *name, MigrateCommon *args)
 
     wait_for_serial("src_serial");
 
+    migrate_incoming_qmp(to, uri, NULL, "{}");
     migrate_qmp(from, to, uri, NULL, "{}");
 
     /* Wait until throttling begins */