[LTP] [PATCH] cputest_regression_test to skip if cgroup version2

Sowmya Indranna reachmesowmyati@gmail.com
Fri May 12 10:07:49 CEST 2023


Signed-off-by: Sowmya Indranna <sowmya.indranna@ibm.com>
---
 .../kernel/controllers/cpuset/cpuset_regression_test.sh      | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testcases/kernel/controllers/cpuset/cpuset_regression_test.sh b/testcases/kernel/controllers/cpuset/cpuset_regression_test.sh
index 1ae8933bc..9e89fe3ed 100755
--- a/testcases/kernel/controllers/cpuset/cpuset_regression_test.sh
+++ b/testcases/kernel/controllers/cpuset/cpuset_regression_test.sh
@@ -130,6 +130,11 @@ setup()
 
 	tst_res TINFO "test starts with cgroup version $cgroup_version"
 
+	if [ "$cgroup_version" = "2" ]; then
+            tst_brk TCONF "cgroup v2 found, skipping test"
+            return
+        fi
+
 	if ! [ -f ${root_cpuset_dir}/${cpu_exclusive} ]; then
 		cpu_exclusive=cpu_exclusive
 		cpus=cpus
-- 
2.40.1.windows.1



More information about the ltp mailing list