Whamcloud - gitweb
LU-6114 test: add $mbench_OPTIONS to run_metabench()
[fs/lustre-release.git] / lustre / tests / performance-sanity.sh
index beabcc4..719b682 100644 (file)
@@ -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 || \
@@ -47,6 +48,9 @@ run_test 3 "small file create/open/delete ======"
 
 # mdsrate-create-large
 test_4() {
+    # LU-2600/LU-4108 - Decrease load on zfs
+    [ "$SLOW" = no -a $(facet_fstype $SINGLEMDS) = zfs ] &&
+       NUM_FILES=10000
     echo "Large file creation performance"
     bash mdsrate-create-large.sh
 }
@@ -80,7 +84,7 @@ test_8() {
 }
 run_test 8 "getattr large files ======"
 
-equals_msg `basename $0`: test complete, cleaning up
+complete $SECONDS
 check_and_cleanup_lustre
 [ -f "$LOG" ] && cat $LOG || true
-[ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG && grep -q FAIL $TESTSUITELOG && exit 1 || true
+exit_status