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

Cristian Marussi cristian.marussi@arm.com
Fri Dec 21 16:20:24 CET 2018


Hi

On 21/12/2018 14:25, Petr Vorel wrote:
> 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.

Fine I'll do. In fact I could see it working properly only when testing on QEMU
2.6.39.

Regards

Cristian
> 
> Kind regards,
> Petr
> 



More information about the ltp mailing list