[LTP] [PATCH v2 1/4] cgroup_regression_test.sh ported to newlib

Petr Vorel pvorel@suse.cz
Fri Dec 21 15:25:38 CET 2018


Hi Cristian,

...
> --- a/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh
>  {
>  	grep -q -w "ns" /proc/cgroups
>  	if [ $? -ne 0 ]; then
> -		tst_resm TCONF "CONFIG_CGROUP_NS"
> +		tst_res TCONF "CONFIG_CGROUP_NS"
>  		return
>  	fi

This could be just

grep -q -w "ns" /proc/cgroups || tst_res TCONF "CONFIG_CGROUP_NS is not enabled"

But CONFIG_CGROUP_NS was removed in a77aea92010a ("cgroup: remove the ns_cgroup")
in v3.0. We don't have TST_MAX_KVER, so we cannot use TST_MAX_KVER="3.0", but
maybe compare kernel version with tst_kvcmp (see doc) and adjust warning for new kernels.

Kind regards,
Petr


More information about the ltp mailing list