From: gaurav mahajan Date: Mon, 9 Feb 2015 12:53:21 +0000 (+0530) Subject: LU-6225 test: test-framework does not cleanup for failed tests X-Git-Tag: 2.7.90~22 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=dc3a6a13d2cec51ca5d8ab1c870ce4cee3d80494;hp=e60e275546224a5141dde3ac75087b8da3795616 LU-6225 test: test-framework does not cleanup for failed tests adding reset_fail_loc to error_noexit() func in test-framework which resets fail_loc and makes sure that the next test will be started with no error injected. Xyratex-bug-id: MRP-2079 Signed-off-by: gaurav mahajan Change-Id: I8cadd21a794d0eb429aee4734d47bd56caf0b8fe Signed-off-by: gaurav mahajan Reviewed-on: http://review.whamcloud.com/13692 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 43b17e9..dd649f0 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -4687,6 +4687,9 @@ error_noexit() { echo "$@" > $LOGDIR/err fi fi + + # cleanup the env for failed tests + reset_fail_loc } exit_status () {