1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-05-19 00:41:07 +02:00

tests: avoid portability problem with dash vs. local v=$splittable_val

* tests/init.cfg (retry_delay_): Adjust awk script to print a single
floating point value, rather than many.
This commit is contained in:
Pádraig Brady
2010-11-08 11:26:08 +01:00
committed by Jim Meyering
parent dd45755406
commit 4a14a80bd1

View File

@@ -391,7 +391,7 @@ retry_delay_()
local time_fail
while test $attempt -le $max_n_tries; do
local delay=$($AWK -v n=$num_sleeps -v s="$init_delay" \
'BEGIN { for (i=0;i<n;i++) t = s" "t; print t }')
'BEGIN { print s * n }')
"$test_func" "$delay" && { time_fail=0; break; } || time_fail=1
attempt=$(expr $attempt + 1)
num_sleeps=$(expr $num_sleeps '*' 2)