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

Cyril Hrubis chrubis@suse.cz
Thu Nov 19 13:05:01 CET 2015


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?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list