1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-26 09:04:50 +02:00

tests: use $AWK, not awk

* tests/cp/sparse-fiemap: Don't hard-code "awk".  Use $AWK.
* tests/init.cfg: Likewise.
* tests/misc/sort-rand: Likewise.
This commit is contained in:
Jim Meyering
2012-05-16 07:46:51 +02:00
parent e2bd5cda0a
commit 2e9f5ca4eb
3 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ fi
f()
{
sed 's/ [a-z,][a-z,]*$//' $@ \
| awk '/^ *[0-9]/ {printf "%d %d ", $2, (NF<5 ? $NF : $5) } END {print ""}'
| $AWK '/^ *[0-9]/ {printf "%d %d ", $2, (NF<5 ? $NF : $5) } END {print ""}'
}
for i in $(seq 1 2 21); do

View File

@@ -183,7 +183,7 @@ require_file_system_bytes_free_()
{
local req=$1
local expr=$(stat -f --printf "$req / %S <= %a" .)
awk "BEGIN{ exit !($expr) }" \
$AWK "BEGIN{ exit !($expr) }" \
|| skip_ "this test needs at least $req bytes of free space"
}

View File

@@ -35,7 +35,7 @@ compare in out1 || { fail=1; echo "not a permutation" 1>&2; }
# If locale is available then use it to find a random non-C locale.
if (locale --version) > /dev/null 2>&1; then
locale=$(locale -a | sort --random-sort | awk '/^.._/{print;exit}')
locale=$(locale -a | sort --random-sort | $AWK '/^.._/{print;exit}')
LC_ALL=$locale sort --random-sort in > out1 || fail=1
LC_ALL=$locale sort --random-sort in > out2 || fail=1