From: Xuzhou Cheng <[email protected]> Make sure QEMU process "to" exited before launching another target for migration in the test_multifd_tcp_cancel case.
Signed-off-by: Xuzhou Cheng <[email protected]> Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]> Message-Id: <[email protected]> Signed-off-by: Thomas Huth <[email protected]> --- tests/qtest/migration-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index 28a06d8170..d2eb107f0c 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -2141,6 +2141,10 @@ static void test_multifd_tcp_cancel(void) migrate_cancel(from); + /* Make sure QEMU process "to" exited */ + qtest_set_expected_status(to, EXIT_FAILURE); + qtest_wait_qemu(to); + args = (MigrateStart){ .only_target = true, }; -- 2.31.1
