From 3b54ff1bc0be1439786ba00df027a26b75e73259 Mon Sep 17 00:00:00 2001 From: lcheng Date: Mon, 26 Feb 2024 10:50:30 +0800 Subject: [PATCH] migration: Fix unix socket number issue QEMU open more connection in postcopy. So update code. Signed-off-by: lcheng --- libvirt/tests/src/migration/migrate_over_unix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/tests/src/migration/migrate_over_unix.py b/libvirt/tests/src/migration/migrate_over_unix.py index 69b8d71938..ec7cf55a23 100644 --- a/libvirt/tests/src/migration/migrate_over_unix.py +++ b/libvirt/tests/src/migration/migrate_over_unix.py @@ -129,7 +129,7 @@ def _check_socket(): global sockets sockets = [x.strip() for x in _res if socket_pattern.match(x)] logging.debug("Found sockets: %s", sockets) - return len(sockets) == int(exp_num) + return len(sockets) >= int(exp_num) found_expected = utils_misc.wait_for(_check_socket, timeout=30)