From: grev Date: Thu, 10 Jan 2008 11:44:59 +0000 (+0000) Subject: b=14408 X-Git-Tag: v1_7_0_51~335 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=685cf046a844ced8b3503c1d1526227c8115c5f8;p=fs%2Flustre-release.git b=14408 i=Adilger reset fail_loc t-f fn --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 4a6e342..03ad9cc 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -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"