diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-19 10:52:18 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-19 10:52:18 +0200 |
commit | e6e6e557f48f9aa23922146fb760233dd6ffa9b7 (patch) | |
tree | 862df625e46cf12e06164f377f3cdaeaa49a0241 /scripts | |
parent | 5605846d2e55fa256294c5e3ecfac223e06325b0 (diff) | |
download | vyos-build-e6e6e557f48f9aa23922146fb760233dd6ffa9b7.tar.gz vyos-build-e6e6e557f48f9aa23922146fb760233dd6ffa9b7.zip |
Testsuite: verify proper running Kernel version compared to repo
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-qemu-install | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index d50b2a86..a53a35f0 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -42,6 +42,7 @@ import random import traceback import logging import re +import json from io import BytesIO from io import StringIO @@ -81,6 +82,9 @@ parser.add_argument('--configtest', help='Execute load/commit config tests', args = parser.parse_args() +with open('data/defaults.json') as f: + vyos_defaults = json.load(f) + class StreamToLogger(object): """ Fake file-like stream object that redirects writes to a logger instance. @@ -326,6 +330,11 @@ try: c.expect(op_mode_prompt) c.sendline('show version') c.expect(op_mode_prompt) + c.sendline('show version kernel') + c.expect(f'{vyos_defaults["kernel_version"]}-{vyos_defaults["kernel_flavor"]}') + c.expect(op_mode_prompt) + c.sendline('show version frr') + c.expect(op_mode_prompt) c.sendline('show interfaces') c.expect(op_mode_prompt) |