diff options
-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) |