diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-24 20:11:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 20:11:14 +0200 |
commit | 3147c580cf9b9d965b62b27b5eee5f3e91df07f8 (patch) | |
tree | d478ebcf4176eeda9106c99e577bea0bcbeb8b16 /smoketest/scripts/system/test_kernel_options.py | |
parent | 6fb937821dd4d70f70dff65cfd81684f175c426a (diff) | |
parent | 43e0c4bc01330d67c986b2f5863f0ca48ec2b87c (diff) | |
download | vyos-1x-3147c580cf9b9d965b62b27b5eee5f3e91df07f8.tar.gz vyos-1x-3147c580cf9b9d965b62b27b5eee5f3e91df07f8.zip |
Merge pull request #3845 from vyos/mergify/bp/sagitta/pr-3833
wireless: T6597: improve hostapd startup and corresponding smoketests (backport #3833)
Diffstat (limited to 'smoketest/scripts/system/test_kernel_options.py')
-rwxr-xr-x | smoketest/scripts/system/test_kernel_options.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/smoketest/scripts/system/test_kernel_options.py b/smoketest/scripts/system/test_kernel_options.py index 4666e98e7..700e4cec7 100755 --- a/smoketest/scripts/system/test_kernel_options.py +++ b/smoketest/scripts/system/test_kernel_options.py @@ -19,8 +19,9 @@ import os import platform import unittest -kernel = platform.release() +from vyos.utils.kernel import check_kmod +kernel = platform.release() class TestKernelModules(unittest.TestCase): """ VyOS makes use of a lot of Kernel drivers, modules and features. The required modules which are essential for VyOS should be tested that they are @@ -35,9 +36,8 @@ class TestKernelModules(unittest.TestCase): super(TestKernelModules, cls).setUpClass() CONFIG = '/proc/config.gz' - if not os.path.isfile(CONFIG): - call('sudo modprobe configs') + check_kmod('configs') with gzip.open(CONFIG, 'rt') as f: cls._config_data = f.read() |