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 authored and Jim Meyering committed 2010-11-08 11:26:08 +01:00
1 parent dd45755406
commit 4a14a80bd1
1 file changed
+1 -1
+1 -1
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)