From: fsgqa Date: Wed, 18 Sep 2002 08:15:56 +0000 (+0000) Subject: also report the size of the tar file we're untarring. X-Git-Tag: v1.1.0~1044 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6dafe2f15e1746bf265433d2317f910c2776db49;p=users%2Fhch%2Fxfstests-dev.git also report the size of the tar file we're untarring. --- diff --git a/run.tar b/run.tar index d502a85b6..f3a0315a7 100755 --- a/run.tar +++ b/run.tar @@ -23,14 +23,16 @@ run_tar() { # %U=user %S=system %E=elapsed mkdir ./tar || exit 1 - cd tar - /usr/bin/time -f '%U,%S,%E' tar xf $TARFILE || exit 1 + size=`ls -lh $TARFILE | awk '{print $5}'` + time=`/usr/bin/time -f '%U,%S,%E' tar xf $TARFILE 2>&1` + [ $? -eq 0 ] || exit 1 + echo "$size,$time" cd .. rm -fr ./tar || exit 1 } if [ $# -gt 0 ]; then - echo "user,system,elapsed" + echo "size,user,system,elapsed" exit 0 fi new_tar