From: Eric Sandeen Date: Tue, 4 May 2004 00:09:53 +0000 (+0000) Subject: fix 021 for varying amts of whitespace in wc output X-Git-Tag: v1.1.0~842 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b45cbb5a136fa2417aa7136902e323ed74fc1939;p=xfstests-dev.git fix 021 for varying amts of whitespace in wc output fix 021 for varying amts of whitespace in wc output --- diff --git a/021 b/021 index b9bcd6a5..9536570e 100755 --- a/021 +++ b/021 @@ -128,7 +128,8 @@ head -1 $tmp.hahahahaplonk # print out the rest of the data apart from the header # the size is +1 for an extra \n at the end echo -n "size of attr value = " -_attr -g "a3" $testfile.2 | tail -3 | wc -c +# wc inserts different amounts of whitespace in front... +_attr -g "a3" $testfile.2 | tail -3 | wc -c | sed -e "s/^ *//" echo "" inum_2=`ls -li $testfile.2 | $AWK_PROG '{ print $1 }'` diff --git a/021.out b/021.out index 9872418e..aea4a605 100644 --- a/021.out +++ b/021.out @@ -15,7 +15,7 @@ user.a2----- user.a3 Attribute "a3" had a 65535 byte value for .2: -size of attr value = 65536 +size of attr value = 65536 *** unmount FS *** dump attributes (1)