[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 43/54] tests/qtest: migration-test: Make sure QEMU process "to
From: |
Bin Meng |
Subject: |
[PATCH v3 43/54] tests/qtest: migration-test: Make sure QEMU process "to" exited after migration is canceled |
Date: |
Sun, 25 Sep 2022 19:30:21 +0800 |
From: Xuzhou Cheng <xuzhou.cheng@windriver.com>
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>
---
Changes in v3:
- Add a usleep(1) in the busy wait loop
Changes in v2:
- Change to a busy wait after migration is canceled
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 a1dd342739..9ec501d1eb 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -2132,6 +2132,10 @@ static void test_multifd_tcp_cancel(void)
wait_for_migration_pass(from);
migrate_cancel(from);
+ /* Make sure QEMU process "to" exited */
+ while (qtest_probe_child(to)) {
+ usleep(1);
+ }
args = (MigrateStart){
.only_target = true,
--
2.34.1
- Re: [PATCH v3 42/54] chardev/char-file: Add FILE_SHARE_WRITE when opening the file for win32, (continued)
- [PATCH v3 35/54] tests/qtest: libqtest: Install signal handler via signal(), Bin Meng, 2022/09/25
- [PATCH v3 40/54] tests/qtest: ide-test: Open file in binary mode, Bin Meng, 2022/09/25
- [PATCH v3 44/54] tests/qtest: microbit-test: Fix socket access for win32, Bin Meng, 2022/09/25
- [PATCH v3 38/54] tests/qtest: bios-tables-test: Adapt the case for win32, Bin Meng, 2022/09/25
- [PATCH v3 39/54] tests/qtest: migration-test: Disable IO redirection for win32, Bin Meng, 2022/09/25
- [PATCH v3 41/54] tests/qtest: virtio-net-failover: Disable migration tests for win32, Bin Meng, 2022/09/25
- [PATCH v3 43/54] tests/qtest: migration-test: Make sure QEMU process "to" exited after migration is canceled,
Bin Meng <=
- [PATCH v3 37/54] tests/qtest: {ahci, ide}-test: Use relative path for temporary files for win32, Bin Meng, 2022/09/25
- [PATCH v3 48/54] io/channel-watch: Drop the unnecessary cast, Bin Meng, 2022/09/25
- [PATCH v3 46/54] tests/qtest: libqtest: Correct the timeout unit of blocking receive calls for win32, Bin Meng, 2022/09/25
- [PATCH v3 49/54] io/channel-watch: Fix socket watch on Windows, Bin Meng, 2022/09/25
- [PATCH v3 45/54] tests/qtest: libqtest: Replace the call to close a socket with closesocket(), Bin Meng, 2022/09/25
- [PATCH v3 51/54] .gitlab-ci.d/windows.yml: Increase the timeout to 90 minutes, Bin Meng, 2022/09/25
- [PATCH v3 50/54] tests/qtest: migration-test: Skip running some TLS cases for win32, Bin Meng, 2022/09/25
- [PATCH v3 47/54] io/channel-watch: Drop a superfluous '#ifdef WIN32', Bin Meng, 2022/09/25