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

Cyril Hrubis chrubis@suse.cz
Fri May 12 10:29:10 CEST 2023


Hi!
> 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

Since we are heading for a release I've fixed the whitespaces here,
adjusted the description and pushed, thanks.

Please mind that LTP uses tabs in shell scripts next time.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list