Whamcloud - gitweb
b=14408
authorgrev <grev>
Thu, 10 Jan 2008 11:44:59 +0000 (11:44 +0000)
committergrev <grev>
Thu, 10 Jan 2008 11:44:59 +0000 (11:44 +0000)
i=Adilger

reset fail_loc t-f fn

lustre/tests/test-framework.sh

index 4a6e342..03ad9cc 100644 (file)
@@ -1248,6 +1248,15 @@ check_mds() {
     [ $FFREE -ge $FTOTAL ] && error "files free $FFREE > total $FTOTAL" || true
 }
 
+reset_fail_loc () {
+    local myNODES=$(nodes_list)
+    local NODE
+
+    for NODE in $myNODES; do
+        do_node $NODE sysctl -w lustre.fail_loc=0 || true
+    done
+}
+
 run_one() {
     testnum=$1
     message=$2
@@ -1263,6 +1272,7 @@ run_one() {
     export TESTNAME=test_$testnum
     test_${testnum} || error "test_$testnum failed with $?"
     #check_mds
+    reset_fail_loc
     check_grant ${testnum} || error "check_grant $testnum failed with $?"
     [ -f $CATASTROPHE ] && [ `cat $CATASTROPHE` -ne 0 ] && \
         error "LBUG/LASSERT detected"