Whamcloud - gitweb
add the $TESTNAME to all errors to make auto-vetting easier
authornic <nic>
Wed, 6 Apr 2005 15:42:55 +0000 (15:42 +0000)
committernic <nic>
Wed, 6 Apr 2005 15:42:55 +0000 (15:42 +0000)
lustre/tests/sanity.sh

index 95e7424..6187837 100644 (file)
@@ -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