From 5a38cd6b60986cbe41263686ac641cf2947e5dbb Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Sat, 28 Sep 2024 14:44:58 +0530 Subject: [PATCH] ftests/030: teach parsing v6.12 cpuset isolation 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 Signed-off-by: Tom Hromatka --- tests/ftests/030-lssubsys-lssubsys_all.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/ftests/030-lssubsys-lssubsys_all.py b/tests/ftests/030-lssubsys-lssubsys_all.py index c83587d8..b24db21d 100755 --- a/tests/ftests/030-lssubsys-lssubsys_all.py +++ b/tests/ftests/030-lssubsys-lssubsys_all.py @@ -10,6 +10,7 @@ from cgroup import Cgroup import consts import ftests +import utils import sys import os @@ -51,6 +52,13 @@ def test(config): 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 = ( -- 2.47.3