X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fmdsrate-stat-small.sh;h=9ae440a0cf5a15bb57295ff10a34d667d2650668;hb=6c68e036af0b2a360bd245284e4813d7014b7311;hp=c702721738b479b93950823eacfb6f68981f7570;hpb=3eed4a065bcbbdc531f52b777dfc503e80329953;p=fs%2Flustre-release.git diff --git a/lustre/tests/mdsrate-stat-small.sh b/lustre/tests/mdsrate-stat-small.sh index c702721..9ae440a 100644 --- a/lustre/tests/mdsrate-stat-small.sh +++ b/lustre/tests/mdsrate-stat-small.sh @@ -59,7 +59,6 @@ else mdsrate_cleanup $NUM_CLIENTS $MACHINEFILE $NUM_FILES $TESTDIR 'f%%d' --ignore log "===== $0 Test preparation: creating ${NUM_FILES} files." - echo "Test preparation: creating ${NUM_FILES} files." COMMAND="${MDSRATE} ${MDSRATE_DEBUG} --mknod --dir ${TESTDIR} --nfiles ${NUM_FILES} --filefmt 'f%%d'" @@ -72,7 +71,7 @@ else fi mpi_run -np ${NUM_THREADS} -machinefile ${MACHINEFILE} ${COMMAND} 2>&1 - [ ${PIPESTATUS[0]} != 0 ] && error "Error running mdsrate, aborting..." + [ ${PIPESTATUS[0]} != 0 ] && error "mdsrate file creation failed, aborting" fi @@ -85,30 +84,29 @@ if [ -n "$NOSINGLE" ]; then echo "NO Test for stats on a single client." else log "===== $0 ### 1 NODE STAT ###" - echo "Running stats on 1 node(s)." echo "+" ${COMMAND} mpi_run -np 1 -machinefile ${MACHINEFILE} ${COMMAND} | tee ${LOG} if [ ${PIPESTATUS[0]} != 0 ]; then - [ -f $LOG ] && cat $LOG - error "mpirun ... mdsrate ... failed, aborting" + [ -f $LOG ] && sed -e "s/^/log: /" $LOG + error "mdsrate on a single client failed, aborting" fi fi # 2 +[ $NUM_CLIENTS -eq 1 ] && NOMULTI=yes if [ -n "$NOMULTI" ]; then echo "NO test for stats on multiple nodes." else log "===== $0 ### ${NUM_CLIENTS} NODES STAT ###" - echo "Running stats on ${NUM_CLIENTS} node(s)." echo "+" ${COMMAND} mpi_run -np ${NUM_CLIENTS} -machinefile ${MACHINEFILE} ${COMMAND} | tee ${LOG} if [ ${PIPESTATUS[0]} != 0 ]; then - [ -f $LOG ] && cat $LOG - error "mpirun ... mdsrate ... failed, aborting" + [ -f $LOG ] && sed -e "s/^/log: /" $LOG + error "mdsrate stats on multiple nodes failed, aborting" fi fi