From b9254bafc76452a276723e8f6d681d2a7d06007f Mon Sep 17 00:00:00 2001 From: nic Date: Wed, 6 Apr 2005 15:42:55 +0000 Subject: [PATCH] add the $TESTNAME to all errors to make auto-vetting easier --- lustre/tests/sanity.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 95e7424..6187837 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -98,7 +98,7 @@ run_one() { BEFORE=`date +%s` log "== test $1: $2= `date +%H:%M:%S` ($BEFORE)" export TESTNAME=test_$1 - test_$1 || error "test_$1: exit with rc=$?" + test_$1 || error "exit with rc=$?" unset TESTNAME pass "($((`date +%s` - $BEFORE))s)" cd $SAVE_PWD @@ -155,7 +155,7 @@ run_test() { [ "$SANITYLOG" ] && rm -f $SANITYLOG || true error() { - log "FAIL: $@" + log "FAIL: $TESTNAME $@" if [ "$SANITYLOG" ]; then echo "FAIL: $TESTNAME $@" >> $SANITYLOG else -- 1.8.3.1