diff options
author | Nicolas Vollmar <nvo@scaling.ch> | 2024-05-27 12:13:39 +0200 |
---|---|---|
committer | Nicolas Vollmar <nvollmar@gmail.com> | 2024-05-27 17:47:15 +0200 |
commit | 5146cb23fff56e5a84db8c84120b836ceeae47f2 (patch) | |
tree | f0202b2362dd88c669bf5fe4c0072193c2280f10 /smoketest/scripts/system/test_kernel_options.py | |
parent | 48e5266e2bca8d1d7a2ee4bacbe0e6628de3fa66 (diff) | |
download | vyos-1x-5146cb23fff56e5a84db8c84120b836ceeae47f2.tar.gz vyos-1x-5146cb23fff56e5a84db8c84120b836ceeae47f2.zip |
T6406: check for required kernel config
Diffstat (limited to 'smoketest/scripts/system/test_kernel_options.py')
-rwxr-xr-x | smoketest/scripts/system/test_kernel_options.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/smoketest/scripts/system/test_kernel_options.py b/smoketest/scripts/system/test_kernel_options.py index bc7f658b0..4666e98e7 100755 --- a/smoketest/scripts/system/test_kernel_options.py +++ b/smoketest/scripts/system/test_kernel_options.py @@ -120,5 +120,13 @@ class TestKernelModules(unittest.TestCase): tmp = re.findall(f'{option}=(y|m)', self._config_data) self.assertTrue(tmp) + def test_container_cpu(self): + options_to_check = [ + 'CONFIG_CGROUP_SCHED', 'CONFIG_CPUSETS', 'CONFIG_CGROUP_CPUACCT', 'CONFIG_CFS_BANDWIDTH' + ] + for option in options_to_check: + tmp = re.findall(f'{option}=(y|m)', self._config_data) + self.assertTrue(tmp) + if __name__ == '__main__': unittest.main(verbosity=2) |