If test fails to mount memory subsytem, it should exit with non-zero code.
Signed-off-by: Jan Stancek <[email protected]> --- .../memcg/regression/memcg_regression_test.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh b/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh index 55bec93..5ecfa28 100755 --- a/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh +++ b/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh @@ -219,7 +219,7 @@ test_4() } # main - +failed=0 mkdir memcg/ for cur in $(seq 1 $TST_TOTAL); do @@ -228,6 +228,7 @@ for cur in $(seq 1 $TST_TOTAL); do mount -t cgroup -o memory xxx memcg/ if [ $? -ne 0 ]; then tst_resm TFAIL "failed to mount memory subsytem" + failed=1 continue fi
------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
