Skip to content

Commit 8b90998

Browse files
Sowmya-TImetan-ucw
authored andcommitted
cputest_regression_test: skip on cgroup v2
The v2 cpuset controller purposely exposes minimal functionality in order to avoid feature creep that plagued the v1. Because of that there is no point in attempting to run the cpuset_exclusive tests on v2. commit 4ec22e9c5a90e3809dd52014d5d239af8831a520 Author: Waiman Long <[email protected]> Date: Thu Nov 8 10:08:35 2018 -0500 ... The cpuset controller had experienced feature creep since its introduction more than a decade ago. Besides the core cpus and mems control files to limit cpus and memory nodes, there are a bunch of additional features that can be controlled from the userspace. Some of the features are of doubtful usefulness and may not be actively used. ... Fixes #1028 Signed-off-by: Sowmya Indranna <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent 0a945f0 commit 8b90998

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

testcases/kernel/controllers/cpuset/cpuset_regression_test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ setup()
130130

131131
tst_res TINFO "test starts with cgroup version $cgroup_version"
132132

133+
if [ "$cgroup_version" = "2" ]; then
134+
tst_brk TCONF "cgroup v2 found, skipping test"
135+
return
136+
fi
137+
133138
if ! [ -f ${root_cpuset_dir}/${cpu_exclusive} ]; then
134139
cpu_exclusive=cpu_exclusive
135140
cpus=cpus

0 commit comments

Comments
 (0)