summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-11-08 11:26:08 +0100
committerJim Meyering <meyering@redhat.com>2010-11-08 11:26:08 +0100
commit4a14a80bd1a88dde4e361aa259264a54c4ffa3ea (patch)
tree211ac0d40ab9c8a21e0489d176d59116e4130b6d /tests
parentdd45755406861fc192284d7e2b28f3c33e0433d3 (diff)
downloadcoreutils-4a14a80bd1a88dde4e361aa259264a54c4ffa3ea.tar.xz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/init.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/init.cfg b/tests/init.cfg
index 778625702..97dad175e 100644
--- a/tests/init.cfg
+++ b/tests/init.cfg
@@ -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)