From dc3a6a13d2cec51ca5d8ab1c870ce4cee3d80494 Mon Sep 17 00:00:00 2001 From: gaurav mahajan Date: Mon, 9 Feb 2015 18:23:21 +0530 Subject: [PATCH] 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 --- lustre/tests/test-framework.sh | 3 +++ 1 file changed, 3 insertions(+) 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 () { -- 1.8.3.1