From 685cf046a844ced8b3503c1d1526227c8115c5f8 Mon Sep 17 00:00:00 2001 From: grev <grev> Date: Thu, 10 Jan 2008 11:44:59 +0000 Subject: [PATCH] b=14408 i=Adilger reset fail_loc t-f fn --- lustre/tests/test-framework.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 4a6e342623..03ad9ccd35 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" -- GitLab