From: Shuang Qiu <[email protected]> Testcase cgroup sometimes fail although there is no bug found. Initialize the exit status to fix it.
Signed-off-by: Shuang Qiu <[email protected]> --- .../controllers/cgroup/cgroup_regression_test.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh b/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh index f5e0b4b..356c000 100755 --- a/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh +++ b/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh @@ -28,6 +28,8 @@ export TCID="cgroup_regression_test" export TST_TOTAL=10 export TST_COUNT=1 +failed=0 + tst_kvercmp 2 6 29 if [ $? -eq 0 ]; then tst_brkm TCONF ignored "test must be run with kernel 2.6.29 or newer" @@ -523,7 +525,7 @@ for ((cur = 1; cur <= $TST_TOTAL; cur++)) test_$cur } -rmdir cgroup/ +rmdir -p cgroup/* exit $failed -- 1.7.7 ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
