From e1f3afe35a1953404883514eba207ad7abcfac42 Mon Sep 17 00:00:00 2001 From: Hu Shuai Date: Thu, 1 Feb 2024 10:09:10 +0800 Subject: [PATCH] virtual_networks: Extend the timeout for obtaining guest IP The guest ip addr may not be obtained within 1 second, extend the timeout to 5. Signed-off-by: Hu Shuai --- libvirt/tests/src/virtual_network/virtual_network_multivms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/tests/src/virtual_network/virtual_network_multivms.py b/libvirt/tests/src/virtual_network/virtual_network_multivms.py index 2ebbd27a29..22bd602b6a 100644 --- a/libvirt/tests/src/virtual_network/virtual_network_multivms.py +++ b/libvirt/tests/src/virtual_network/virtual_network_multivms.py @@ -368,7 +368,7 @@ def pause_resume_vm(vm_name): for vm_i in vm_list: mac = vm_xml.VMXML.get_first_mac_by_name(vm_i.name) sess = vm_i.wait_for_serial_login() - vm_ip = utils_net.get_guest_ip_addr(sess, mac) + vm_ip = utils_net.get_guest_ip_addr(sess, mac, timeout=5) session_n_ip[sess] = vm_ip logging.debug('Vm %s ip: %s', vm_i.name, vm_ip) if not vm_ip: