summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-06-19 18:30:45 -0400
committerFabiano Rosas <farosas@suse.de>2024-06-21 14:37:47 -0300
commit8dbd24d3aa6d67b2d3576da016fb631fd1edfc2c (patch)
tree905d22c59c3d7546149b63cd2c0d2b0ae4dbdee7
parentd444e5673c223241bd2edbc207b02cc1b2114b71 (diff)
downloadfocaccia-qemu-8dbd24d3aa6d67b2d3576da016fb631fd1edfc2c.tar.gz
focaccia-qemu-8dbd24d3aa6d67b2d3576da016fb631fd1edfc2c.zip
tests/migration-tests: Verify postcopy-recover-setup status
Making sure the postcopy-recover-setup status is present in the postcopy
failure unit test.  Note that it only applies to src QEMU not dest.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
-rw-r--r--tests/qtest/migration-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index 32e31fff86..e61096adfe 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -1414,6 +1414,12 @@ static void postcopy_recover_fail(QTestState *from, QTestState *to)
     migrate_qmp(from, to, "fd:fd-mig", NULL, "{'resume': true}");
 
     /*
+     * Source QEMU has an extra RECOVER_SETUP phase, dest doesn't have it.
+     * Make sure it appears along the way.
+     */
+    migration_event_wait(from, "postcopy-recover-setup");
+
+    /*
      * Make sure both QEMU instances will go into RECOVER stage, then test
      * kicking them out using migrate-pause.
      */