From 77938e0a85ba6f6b13508fb4cda40d8ca22c0d76 Mon Sep 17 00:00:00 2001 From: lantz Date: Sat, 16 Jan 2021 19:21:00 -0800 Subject: [PATCH] Increase timeout for emulated build (#1009) --- util/vm/build.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/util/vm/build.py b/util/vm/build.py index 4fd02a7..de566ca 100755 --- a/util/vm/build.py +++ b/util/vm/build.py @@ -662,8 +662,11 @@ def interact( vm, tests, pre='', post='', prompt=Prompt, vm.expect ( 'password for mininet: ' ) vm.sendline( 'mininet' ) log( '* Waiting for script to complete... ' ) - # Gigantic timeout for now ;-( - vm.expect( 'Done preparing Mininet', timeout=3600 ) + # Long timeout since we may be on cloud CI + # 30min for kvm, 1.5hr for emulation + # TODO: detect installation errors + timeout = 5200 if NoKVM else 1800 + vm.expect( 'Done preparing Mininet', timeout=timeout ) log( '* Completed successfully' ) vm.expect( prompt ) version = getMininetVersion( vm )