From: nic Date: Wed, 6 Apr 2005 15:42:55 +0000 (+0000) Subject: add the $TESTNAME to all errors to make auto-vetting easier X-Git-Tag: v1_8_0_110~486^7~51 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b9254bafc76452a276723e8f6d681d2a7d06007f;p=fs%2Flustre-release.git add the $TESTNAME to all errors to make auto-vetting easier --- 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