diff --git a/smoketest/scripts/cli/test_op-mode_show.py b/smoketest/scripts/cli/test_op-mode_show.py index fba60cc016..62f8e88dac 100755 --- a/smoketest/scripts/cli/test_op-mode_show.py +++ b/smoketest/scripts/cli/test_op-mode_show.py @@ -15,8 +15,10 @@ # along with this program. If not, see . import unittest + from base_vyostest_shim import VyOSUnitTestSHIM +from vyos.utils.process import cmd from vyos.version import get_version base_path = ['show'] @@ -29,6 +31,11 @@ def test_op_mode_show_version(self): version = get_version() self.assertIn(f'Version: VyOS {version}', tmp) + def test_op_mode_show_version_kernel(self): + # Retrieve output of "show version" OP-mode command + tmp = self.op_mode(base_path + ['version', 'kernel']) + self.assertEqual(cmd('uname -r'), tmp) + def test_op_mode_show_vrf(self): # Retrieve output of "show version" OP-mode command tmp = self.op_mode(base_path + ['vrf']) diff --git a/smoketest/scripts/cli/test_service_stunnel.py b/smoketest/scripts/cli/test_service_stunnel.py old mode 100644 new mode 100755