diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-09 11:13:11 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-09 22:40:44 +0100 |
commit | 76f59a39153f4e5880602f4b439efabb2dff3b07 (patch) | |
tree | d261f877290fca7877119a172dde2b29c0a539f3 /scripts/check-qemu-install | |
parent | 462c5f80e086b1f5f74c564b3cb53df230b06d6b (diff) | |
download | vyos-build-76f59a39153f4e5880602f4b439efabb2dff3b07.tar.gz vyos-build-76f59a39153f4e5880602f4b439efabb2dff3b07.zip |
Testsuite: set default timeout to 60 seconds
Diffstat (limited to 'scripts/check-qemu-install')
-rwxr-xr-x | scripts/check-qemu-install | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 3053a479..6556660a 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -227,7 +227,7 @@ try: log.info('Installing system') cmd = get_qemu_cmd('TESTVM', kvm, args.uefi, args.disk, diskname_raid, args.iso) log.debug(f'Executing command: {cmd}') - c = pexpect.spawn(cmd, logfile=stl) + c = pexpect.spawn(cmd, logfile=stl, timeout=60) ################################################# # Logging into VyOS system @@ -246,7 +246,7 @@ try: log.info('Waiting for login prompt') c.expect('[Ll]ogin:', timeout=600) c.sendline('vyos') - c.expect('[Pp]assword:', timeout=20) + c.expect('[Pp]assword:') c.sendline('vyos') c.expect(op_mode_prompt) log.info('Logged in!') @@ -277,10 +277,10 @@ try: c.sendline('') log.info('Disk(s) partitioned, installing...') - c.expect('\nWhat would you like to name this image?.*:', timeout=300) + c.expect('\nWhat would you like to name this image?.*:', timeout=600) c.sendline('') log.info('Copying files') - c.expect('\nWhich one should I copy to.*:', timeout=300) + c.expect('\nWhich one should I copy to.*:', timeout=600) c.sendline('') log.info('Files Copied!') c.expect('\nEnter password for user.*:') @@ -332,14 +332,11 @@ try: log.info('Waiting for login prompt') c.expect('[Ll]ogin:', timeout=600) c.sendline(default_user) - c.expect('[Pp]assword:', timeout=20) + c.expect('[Pp]assword:') c.sendline(default_password) c.expect(op_mode_prompt) log.info('Logged in!') - # additional settling time - time.sleep(20) - ################################################ # Always load the WiFi simulation module ################################################ @@ -403,7 +400,7 @@ try: raise Exception(tmp) c.sendline('echo EXITCODE:$\x16?') - i = c.expect(['EXITCODE:0', 'EXITCODE:\d+'], timeout=20) + i = c.expect(['EXITCODE:0', 'EXITCODE:\d+']) if i == 0: log.info('Smoketest finished successfully!') pass @@ -464,7 +461,7 @@ try: raise Exception(tmp) c.sendline('echo EXITCODE:$\x16?') - i = c.expect(['EXITCODE:0', 'EXITCODE:\d+'], timeout=10) + i = c.expect(['EXITCODE:0', 'EXITCODE:\d+']) if i == 0: log.info('Configtest finished successfully!') pass |