Skip to content

Commit

Permalink
T6406: check for required kernel config
Browse files Browse the repository at this point in the history
  • Loading branch information
nvollmar committed May 27, 2024
1 parent 48e5266 commit 5146cb2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions smoketest/scripts/system/test_kernel_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,13 @@ def test_vfio(self):
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)

0 comments on commit 5146cb2

Please sign in to comment.