[LTP] [PATCH] controllers/cpuacct: add kernel version check

yangxiao yangx.jy@cn.fujitsu.com
Fri Nov 20 04:10:03 CET 2015


Hi !
> Hi!
>>   	tst_require_root
>>
>> +	tst_kvercmp 2 6 30
>> +	if [ $? -eq 0 ]; then
>> +		tst_brkm TCONF "Test should be run with kernel 2.6.30 or newer"
>> +	fi
> Can we do 'grep -q cpuacct /proc/cgroups' to figure out if it's
> supported instead?
>
Thanks, I will rewirte it as what you suggested.


More information about the Ltp mailing list