X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fperformance-sanity.sh;h=fd13747e68939291286bcc90095b691573d6dea2;hb=b031b90a0320401db1ae474c4cbd89226bf5f2c9;hp=beabcc46cc8917bfeb355eb56391c228ea52763d;hpb=984482f865fc1cc3c7ecdd10b521bd479ce11688;p=fs%2Flustre-release.git diff --git a/lustre/tests/performance-sanity.sh b/lustre/tests/performance-sanity.sh index beabcc4..fd13747 100644 --- a/lustre/tests/performance-sanity.sh +++ b/lustre/tests/performance-sanity.sh @@ -11,6 +11,7 @@ LUSTRE=${LUSTRE:-`dirname $0`/..} init_test_env $@ . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} +init_logging [ -x "$MDSRATE" ] || FAIL_ON_ERROR=true error "No mdsrate program. Aborting." which mpirun > /dev/null 2>&1 || \ @@ -80,7 +81,7 @@ test_8() { } run_test 8 "getattr large files ======" -equals_msg `basename $0`: test complete, cleaning up +complete $(basename $0) $SECONDS check_and_cleanup_lustre [ -f "$LOG" ] && cat $LOG || true -[ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG && grep -q FAIL $TESTSUITELOG && exit 1 || true +exit_status