]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
awk invocation cleanup for busybox support.
authorAri Sundholm <ari@tuxera.com>
Tue, 4 Aug 2015 04:10:48 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:48 +0000 (14:10 +1000)
These changes make it possible to run more of the tests on busybox.

Signed-off-by: Ari Sundholm <ari@tuxera.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/punch
tests/generic/273

index a75f4cfde43d9e6afdb8b5a877132959289fd021..e8770ab834a7c80f5b0c4e8a58d0674edad765d4 100644 (file)
@@ -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;
index 1ceb6c4af646cf692839ddb045080b2d7fe84e5e..e5af7f14eea4a4f57a55581408e3809348ff5dcb 100755 (executable)
@@ -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