[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 10/11] tests/migration-tests: Verify postcopy-recover-setup st
From: |
Peter Xu |
Subject: |
[PATCH v3 10/11] tests/migration-tests: Verify postcopy-recover-setup status |
Date: |
Wed, 19 Jun 2024 18:30:45 -0400 |
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.
This also introduces the tiny but helpful migration_event_wait() helper.
Signed-off-by: Peter Xu <peterx@redhat.com>
---
tests/qtest/migration-test.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index c015e801ac..de81e28088 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -1412,6 +1412,12 @@ static void postcopy_recover_fail(QTestState *from,
QTestState *to)
migrate_recover(to, "fd:fd-mig");
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.
--
2.45.0
- [PATCH v3 02/11] migration: Rename thread debug names, (continued)
- [PATCH v3 02/11] migration: Rename thread debug names, Peter Xu, 2024/06/19
- [PATCH v3 03/11] migration: Use MigrationStatus instead of int, Peter Xu, 2024/06/19
- [PATCH v3 04/11] migration: Cleanup incoming migration setup state change, Peter Xu, 2024/06/19
- [PATCH v3 05/11] migration/postcopy: Add postcopy-recover-setup phase, Peter Xu, 2024/06/19
- [PATCH v3 07/11] tests/migration-tests: Drop most WIN32 ifdefs for postcopy failure tests, Peter Xu, 2024/06/19
- [PATCH v3 06/11] migration/docs: Update postcopy recover session for SETUP phase, Peter Xu, 2024/06/19
- [PATCH v3 08/11] tests/migration-tests: Always enable migration events, Peter Xu, 2024/06/19
- [PATCH v3 09/11] tests/migration-tests: migration_event_wait(), Peter Xu, 2024/06/19
- [PATCH v3 10/11] tests/migration-tests: Verify postcopy-recover-setup status,
Peter Xu <=
- [PATCH v3 11/11] tests/migration-tests: Cover postcopy failure on reconnect, Peter Xu, 2024/06/19
- Re: [PATCH v3 00/11] migration: New postcopy state, and some cleanups, Fabiano Rosas, 2024/06/21