X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Frunregression-mds.sh;h=7167d2defc8152a0d31f2a7895122736c6c12e0e;hb=e52a140eb7f65a63f07dbb7e2aaff7f9e22974f2;hp=ecfe0d941afcc0fdb6512a2d6787a872fd28aa34;hpb=c86179ce2040279789fb3e999ef359baccfec8d6;p=fs%2Flustre-release.git diff --git a/lustre/tests/runregression-mds.sh b/lustre/tests/runregression-mds.sh index ecfe0d9..7167d2d 100755 --- a/lustre/tests/runregression-mds.sh +++ b/lustre/tests/runregression-mds.sh @@ -23,11 +23,11 @@ cleanup() { [ -z "$*" ] && fail "usage: $0 [--reformat] .xml" 1 -OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -1`" +OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -n 1`" if [ -z "$OSCMT" ]; then $LCONF $@ || exit 1 trap cleanup 0 - OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -1`" + OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -n 1`" [ -z "$OSCMT" ] && fail "no lustre filesystem mounted" 1 fi @@ -42,7 +42,7 @@ while [ "$1" ]; do done OSCTMP=`echo $OSCMT | tr "/" "."` -USED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -1` +USED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -n 1` USED=`expr $USED + 16` # Some space for the status file THREADS=1 @@ -58,7 +58,7 @@ done rm -f $ENDRUN -NOWUSED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -1` +NOWUSED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -n 1` if [ $NOWUSED -gt $USED ]; then echo "Space not all freed: now ${NOWUSED}kB, was ${USED}kB." 1>&2 echo "This is normal on BA OSTs, because of subdirectories." 1>&2