# print the durations of each test if "true"
DDETAILS=${DDETAILS:-false}
[ "$TESTSUITELOG" ] && rm -f $TESTSUITELOG || true
+ cntlog=0
rm -f $TMP/*active
}
if $dump; then
ERRLOG=$tmp/lustre_${TESTSUITE}_${TESTNAME}.$(date +%s)
+ [[ $cntlog -eq 0 ]] || ERRLOG=$ERRLOG.$cntlog
+ (( cntlog+=1 ))
echo "Dumping lctl log to $ERRLOG"
# We need to dump the logs on all nodes
do_nodes $(comma_list $(nodes_list)) $NODE $LCTL dk $ERRLOG
local BEFORE=`date +%s`
echo
log "== test $testnum: $message == `date +%H:%M:%S` ($BEFORE)"
- #check_mds
export TESTNAME=test_$testnum
TEST_FAILED=false
+ cntlog=0
test_${testnum} || error "test_$testnum failed with $?"
- #check_mds
cd $SAVE_PWD
reset_fail_loc
check_grant ${testnum} || $TEST_FAILED || error "check_grant $testnum failed"
ps auxww | grep -v grep | grep -q multiop && ($TEST_FAILED || error "multiop still running")
pass "($((`date +%s` - $BEFORE))s)"
TEST_FAILED=false
+ cntlog=0
unset TESTNAME
unset tdir
umask $SAVE_UMASK