From: Ari Sundholm Date: Tue, 4 Aug 2015 04:10:48 +0000 (+1000) Subject: awk invocation cleanup for busybox support. X-Git-Tag: v2022.05.01~2855 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d48469086a21e2de9e13a6653c28101236ce1b31;p=xfstests-dev.git awk invocation cleanup for busybox support. These changes make it possible to run more of the tests on busybox. Signed-off-by: Ari Sundholm Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/common/punch b/common/punch index a75f4cfd..e8770ab8 100644 --- a/common/punch +++ b/common/punch @@ -203,7 +203,7 @@ _coalesce_extents() _filter_fiemap() { - awk --posix ' + $AWK_PROG ' $3 ~ /hole/ { print $1, $2, $3; next; @@ -223,7 +223,7 @@ _filter_fiemap() # it is an extent or a hole _filter_hole_fiemap() { - awk --posix ' + $AWK_PROG ' $3 ~ /hole/ { print $1, $2, $3; next; diff --git a/tests/generic/273 b/tests/generic/273 index 1ceb6c4a..e5af7f14 100755 --- a/tests/generic/273 +++ b/tests/generic/273 @@ -68,7 +68,7 @@ _file_create() cd $SCRATCH_MNT/origin - _disksize=`$DF_PROG --block-size=1 $SCRATCH_DEV | tail -1 | awk '{ print $5 }'` + _disksize=`$DF_PROG -B 1 $SCRATCH_DEV | tail -1 | $AWK_PROG '{ print $5 }'` _disksize=$(($_disksize / 3)) _num=$(($_disksize / $count / $threads / 4096)) _count=$count