summaryrefslogtreecommitdiff
path: root/smoketest/scripts/system/test_kernel_options.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-23 06:44:10 +0200
committerGitHub <noreply@github.com>2024-07-23 06:44:10 +0200
commitbf7fcfbc974bbb6664bc883878fba32a1edaaad7 (patch)
tree8e70b50fa845612b5e885c17c1fd916f7cdfbdf5 /smoketest/scripts/system/test_kernel_options.py
parent31ac4e20837f392f4cbc9b5d1b692a1fc4430451 (diff)
parent9516ae6ffafa5107ff7e6639c2a2303dc6bc9ae4 (diff)
downloadvyos-1x-bf7fcfbc974bbb6664bc883878fba32a1edaaad7.tar.gz
vyos-1x-bf7fcfbc974bbb6664bc883878fba32a1edaaad7.zip
Merge pull request #3844 from vyos/mergify/bp/circinus/pr-3833
wireless: T6597: improve hostapd startup and corresponding smoketests (backport #3833)
Diffstat (limited to 'smoketest/scripts/system/test_kernel_options.py')
-rwxr-xr-xsmoketest/scripts/system/test_kernel_options.py6
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()