|
| From: | Pádraig Brady |
| Subject: | bug#6547: GNU coreutils 8.5 "make check" => tests/test-suite.log 8 of 365 tests failed |
| Date: | Tue, 06 Jul 2010 09:52:14 +0100 |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
On 06/07/10 09:27, Jost, Martin (NSN - DE/Munich) wrote:
> looks like the patch is buggy.
> Now I get
> 13 of 365 tests failed. (54 tests were not run).
Oops sorry. I should have said the patch was against trunk.
If you're still interested in testing then you can add
the following to tests/test-lib.sh and try again.
cheers,
Pádraig.
retry_delay_()
{
local test_func=$1
local init_delay=$2
local max_n_tries=$3
local attempt=1
local num_sleeps=$attempt
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 }')
"$test_func" "$delay" && { time_fail=0; break; } || time_fail=1
attempt=$(expr $attempt + 1)
num_sleeps=$(expr $num_sleeps '*' 2)
done
test "$time_fail" = 0
}
| [Prev in Thread] | Current Thread | [Next in Thread] |