summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-19 10:52:18 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-19 10:52:18 +0200
commite6e6e557f48f9aa23922146fb760233dd6ffa9b7 (patch)
tree862df625e46cf12e06164f377f3cdaeaa49a0241 /scripts
parent5605846d2e55fa256294c5e3ecfac223e06325b0 (diff)
downloadvyos-build-e6e6e557f48f9aa23922146fb760233dd6ffa9b7.tar.gz
vyos-build-e6e6e557f48f9aa23922146fb760233dd6ffa9b7.zip
Testsuite: verify proper running Kernel version compared to repo
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-qemu-install9
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)