X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Frun_tar.sh;h=1bc47e9974e103b66a22846ef36141de87535e0a;hb=c12fbb19d332be89607462d8a210a8aedf354fa1;hp=9005ac40ec51b07ae3b24326c1384ee530607e87;hpb=df7e50866da018044552cf0c78f00bfd4c345511;p=fs%2Flustre-release.git diff --git a/lustre/tests/run_tar.sh b/lustre/tests/run_tar.sh index 9005ac4..1bc47e9 100755 --- a/lustre/tests/run_tar.sh +++ b/lustre/tests/run_tar.sh @@ -23,16 +23,19 @@ echo $$ >$LOAD_PID_FILE TESTDIR=$MOUNT/d0.tar-$(hostname) +do_tar() { + tar cf - /etc | tar xf - 2>&1 | tee $LOG + return ${PIPESTATUS[1]} +} + CONTINUE=true while [ ! -e "$END_RUN_FILE" ] && $CONTINUE; do echoerr "$(date +'%F %H:%M:%S'): tar run starting" mkdir -p $TESTDIR cd $TESTDIR - tar cf - /etc | tar xf - 2>&1 | tee $LOG & - load_pid=$! -ps -e f -o "pid ppid pgrp comm" >$TMP/client-load.ps-list - wait $load_pid - RC=${PIPESTATUS[0]} + do_tar & + wait $! + RC=$? PREV_ERRORS=$(grep "exit delayed from previous errors" $LOG) || true if [ $RC -ne 0 -a "$ERRORS_OK" -a "$PREV_ERRORS" ]; then echoerr "$(date +'%F %H:%M:%S'): tar errors earlier, ignoring"