summaryrefslogtreecommitdiff
path: root/tests/btrfs/164
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2022-02-14 17:48:45 -0800
committerEryu Guan <guaneryu@gmail.com>2022-02-21 00:45:50 +0800
commit67f9580c212dd1f2a8273f6194e686d187582255 (patch)
tree0161200d96329ba5981bf04c24f6b58672f0f813 /tests/btrfs/164
parent9470dc5dddeaa48ef3633a46ab89523d78b3245f (diff)
tests/btrfs: use $AWK_PROG instead of awk
Use $AWK_PROG instead of awk in case the default awk program is not called awk. Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Adam Manzanares <a.manzanares@samsung.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'tests/btrfs/164')
-rwxr-xr-xtests/btrfs/1644
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/btrfs/164 b/tests/btrfs/164
index 8fd6ab62..43c55c16 100755
--- a/tests/btrfs/164
+++ b/tests/btrfs/164
@@ -29,8 +29,8 @@ _require_scratch_dev_pool 2
_scratch_dev_pool_get 2
-dev_seed=$(echo $SCRATCH_DEV_POOL | awk '{print $1}')
-dev_sprout=$(echo $SCRATCH_DEV_POOL | awk '{print $2}')
+dev_seed=$(echo $SCRATCH_DEV_POOL | $AWK_PROG '{print $1}')
+dev_sprout=$(echo $SCRATCH_DEV_POOL | $AWK_PROG '{print $2}')
create_seed()
{