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>
This commit is contained in:
Peter Xu 2024-06-19 18:30:45 -04:00 committed by Fabiano Rosas
parent d444e5673c
commit 8dbd24d3aa

View File

@ -1413,6 +1413,12 @@ static void postcopy_recover_fail(QTestState *from, QTestState *to)
migrate_recover(to, "fd:fd-mig"); migrate_recover(to, "fd:fd-mig");
migrate_qmp(from, to, "fd:fd-mig", NULL, "{'resume': true}"); 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 * Make sure both QEMU instances will go into RECOVER stage, then test
* kicking them out using migrate-pause. * kicking them out using migrate-pause.