diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-09 10:16:06 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-09 11:13:17 +0100 |
commit | 2aa0166d87c9ebd024dc8aff950bfb11492f59ea (patch) | |
tree | 1169941a16b7e6c674f30c0f09105f7844c0cf64 /scripts | |
parent | c5dee499abaf729dc9388c0b86530c0d09fd9fd1 (diff) | |
download | vyos-build-2aa0166d87c9ebd024dc8aff950bfb11492f59ea.tar.gz vyos-build-2aa0166d87c9ebd024dc8aff950bfb11492f59ea.zip |
Testsuite: reference default user/pass from variable
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-qemu-install | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 59fd19ee..cd57a06f 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -218,6 +218,8 @@ try: ################################################# op_mode_prompt = r'vyos@vyos:~\$' cfg_mode_prompt = r'vyos@vyos#' + default_user = 'vyos' + default_password = 'vyos' try: c.expect('Automatic boot in', timeout=10) @@ -257,9 +259,9 @@ try: c.sendline('') log.info('Files Copied!') c.expect('\nEnter password for user.*:') - c.sendline('vyos') + c.sendline(default_user) c.expect('\nRetype password for user.*:') - c.sendline('vyos') + c.sendline(default_password) c.expect('\nWhich drive should GRUB modify the boot partition on.*:') c.sendline('') c.expect(op_mode_prompt) @@ -301,9 +303,9 @@ try: log.info('Waiting for login prompt') c.expect('[Ll]ogin:', timeout=600) - c.sendline('vyos') + c.sendline(default_user) c.expect('[Pp]assword:', timeout=20) - c.sendline('vyos') + c.sendline(default_password) c.expect(op_mode_prompt) log.info('Logged in!') |