X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fmdsrate-create-small.sh;h=59b33a637995535383f273bc070791fde2d67409;hb=6fcbb85b3a9a618e8dd7ee14c9fc7da7d23dab5d;hp=03ca9bb10517acc45529ee30d70f3cf647edb5cb;hpb=e5d273a022243604c9dc22e33ad3eb282c02d4b2;p=fs%2Flustre-release.git diff --git a/lustre/tests/mdsrate-create-small.sh b/lustre/tests/mdsrate-create-small.sh index 03ca9bb..59b33a6 100644 --- a/lustre/tests/mdsrate-create-small.sh +++ b/lustre/tests/mdsrate-create-small.sh @@ -1,4 +1,4 @@ -#!/bin/bash + #!/bin/bash # # This test was used in a set of CMD3 tests (cmd3-3 test). @@ -80,7 +80,7 @@ else log "===== $0 ### 1 NODE UNLINK ###" if [ -f "$LOG" ]; then - CREATED=$(awk '/total:/ { print $7 }' $LOG) + CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG) [ $CREATED -gt 0 ] && NUM_FILES=$CREATED fi @@ -130,7 +130,7 @@ else log "===== $0 ### $NUM_CLIENTS NODES UNLINK with $THREADS_PER_CLIENT threads per client ###" if [ -f "$LOG" ]; then - CREATED=$(awk '/total:/ { print $7 }' $LOG) + CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG) [ $CREATED -gt 0 ] && NUM_FILES=$CREATED fi