Starting v6.12 cpuset code is split into v1 and v2 code, where v1 code
is only compiled when CONFIG_CPUSET_V1 is set. Which defaults to
disabled, teach the test case to ignore such failure.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
from cgroup import Cgroup
import consts
import ftests
+import utils
import sys
import os
found = True
break
+ if not found and mount.controller == 'cpuset':
+ kernel_ver = utils.get_kernel_version(config)
+ if int(kernel_ver[0]) >= 6 and int(kernel_ver[1]) >= 12:
+ # Starting 6.12 cpuset is split into v1 and v2, where
+ # v1 is compiled only when CONFIG_CPUSET_V1 is enabled
+ found = True
+
if not found:
result = consts.TEST_FAILED
cause = (