Skip to content

Commit 86ec7fd

Browse files
committed
try_get_and_store_ip: raise boot timeout for nested tests
When testing in a nested setup, 2 min is not enough to boot a Debian 12 to the point the XS agent has published to xenstore. 5 min should be enough for everyone. Signed-off-by: Yann Dirson <[email protected]>
1 parent 28b021a commit 86ec7fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def running_vm(imported_vm):
339339
if not vm.is_running():
340340
vm.start()
341341
wait_for(vm.is_running, '> Wait for VM running')
342-
wait_for(vm.try_get_and_store_ip, "> Wait for VM IP")
342+
wait_for(vm.try_get_and_store_ip, "> Wait for VM IP", timeout_secs=5*60)
343343
wait_for(vm.is_ssh_up, "> Wait for VM SSH up")
344344
return vm
345345
# no teardown

lib/vm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def wait_for_os_booted(self):
122122
# waiting for the IP:
123123
# - allows to make sure the OS actually started (on VMs that have the management agent)
124124
# - allows to store the IP for future use in the VM object
125-
wait_for(self.try_get_and_store_ip, "Wait for VM IP")
125+
wait_for(self.try_get_and_store_ip, "Wait for VM IP", timeout_secs=5*60)
126126
# now wait also for the management agent to have started
127127
wait_for(self.is_management_agent_up, "Wait for management agent up")
128128

0 commit comments

Comments
 (0)