tests/qtest: migration-test: Make sure QEMU process "to" exited after migration is...
authorXuzhou Cheng <xuzhou.cheng@windriver.com>
Fri, 28 Oct 2022 04:57:32 +0000 (12:57 +0800)
committerThomas Huth <thuth@redhat.com>
Fri, 28 Oct 2022 12:32:09 +0000 (14:32 +0200)
Make sure QEMU process "to" exited before launching another target
for migration in the test_multifd_tcp_cancel case.

Signed-off-by: Xuzhou Cheng <xuzhou.cheng@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221028045736.679903-8-bin.meng@windriver.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/migration-test.c

index 28a06d8170aee50e9fd2b5bfed4cf3b22ddbf805..d2eb107f0c16bace9005037d88bd7ef66d75d678 100644 (file)
@@ -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,
     };