diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-22 15:22:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-22 15:22:39 +0200 |
commit | 13d53509e4a33ca8ec5249a51854e919f22121bc (patch) | |
tree | 968a48f1be848959a08fbe3bf5640f2762c7afc9 /smoketest/scripts/system/test_kernel_options.py | |
parent | 085ca2cf541eaa1c605985c7e65cec9b7584acf1 (diff) | |
parent | a67f49d99eda00998c425f9a663e138dbd0f7755 (diff) | |
download | vyos-1x-13d53509e4a33ca8ec5249a51854e919f22121bc.tar.gz vyos-1x-13d53509e4a33ca8ec5249a51854e919f22121bc.zip |
Merge pull request #3833 from c-po/wifi-fix
wireless: T6597: improve hostapd startup and corresponding smoketests
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() |