From: l00194070 <liaoqing...@huawei.com> Most of the time,the reason of mount cgroup failed is the configuration is not enabled,for example,CONFIG_CGROUP_CPUACCT=no. I think use TCONF message is more helpful,and use basic test interface tst_brkm instead of echo failed message.
Signed-off-by: Liao Qingwei <liaoqing...@huawei.com> --- testcases/kernel/controllers/cpuacct/cpuacct_setup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testcases/kernel/controllers/cpuacct/cpuacct_setup.sh b/testcases/kernel/controllers/cpuacct/cpuacct_setup.sh index 6eab1b4..301d151 100755 --- a/testcases/kernel/controllers/cpuacct/cpuacct_setup.sh +++ b/testcases/kernel/controllers/cpuacct/cpuacct_setup.sh @@ -97,10 +97,8 @@ setup() mount -t cgroup -ocpuacct none /dev/cpuacct 2> /dev/null if [ $? -ne 0 ] then - echo "TFAIL: Could not mount cgroup filesystem" - echo "Exiting test" cleanup - exit 1 + tst_brkm TCONF "Could not mount cgroup filesystem,Maybe the configuration is not enabled" fi # Group created earlier may again be visible if not cleaned properly. -- 1.9.1 ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list