Whamcloud - gitweb
LU-6225 test: test-framework does not cleanup for failed tests 92/13692/5
authorgaurav mahajan <gaurav.mahajan@seagate.com>
Mon, 9 Feb 2015 12:53:21 +0000 (18:23 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 4 Feb 2016 04:45:57 +0000 (04:45 +0000)
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 <gaurav.mahajan@seagate.com>
Change-Id: I8cadd21a794d0eb429aee4734d47bd56caf0b8fe
Signed-off-by: gaurav mahajan <gaurav.mahajan@seagate.com>
Reviewed-on: http://review.whamcloud.com/13692
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/test-framework.sh

index 43b17e9..dd649f0 100755 (executable)
@@ -4687,6 +4687,9 @@ error_noexit() {
                        echo "$@" > $LOGDIR/err
                fi
        fi
+
+       # cleanup the env for failed tests
+       reset_fail_loc
 }
 
 exit_status () {