diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-27 13:35:49 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-27 13:35:49 +0100 |
commit | f9e8fc314c94c1a09804c1c5827bc1cf50c95358 (patch) | |
tree | 23c33151dc507fe7dcb84b2a20b14a3223f01148 /scripts | |
parent | 4593cc2296a307e698ca562c7954850c52d03866 (diff) | |
download | vyos-build-f9e8fc314c94c1a09804c1c5827bc1cf50c95358.tar.gz vyos-build-f9e8fc314c94c1a09804c1c5827bc1cf50c95358.zip |
Testsuite: add basic cfg/op-mode switch
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-qemu-install | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 636da7a6..33fdaad2 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -281,7 +281,16 @@ try: c.expect(r'vyos@vyos:~\$') log.info('Logged in!') - + ################################################# + # Basic Configmode/Opmode switch + ################################################# + log.info("Basic CLI login test") + c.sendline('configure') + c.expect(r'\n[edit]\nvyos@vyos:~\#') + log.info('Switched to configuration mode') + c.sendline('exit') + c.expect(r'\nexit\nvyos@vyos:~\$') + log.info('Switched to operation mode') ################################################# # Executing test-suite |