Re: t5570 shaky for anyone ?
- Date: Sun, 25 Nov 2018 22:01:38 +0000
- From: Thomas Gummerer <t.gummerer@xxxxxxxxx>
- Subject: Re: t5570 shaky for anyone ?
On 11/25, Torsten Bögershausen wrote:
> After running the "Git 2.20-rc1" testsuite here on a raspi,
> the only TC that failed was t5570.
> When the "grep" was run on daemon.log, the file was empty (?).
> When inspecting it later, it was filled, and grep would have found
> the "extended.attribute" it was looking for.
I believe this has been reported before in
but it seems like the thread never ended with actually fixing it.
Reading the first reply Peff seemed to be fine with just removing the
test completely, which would be the easiest solution ;) Adding him to
> The following fixes it, but I am not sure if this is the ideal
> diff --git a/t/t5570-git-daemon.sh b/t/t5570-git-daemon.sh
> index 7466aad111..e259fee0ed 100755
> --- a/t/t5570-git-daemon.sh
> +++ b/t/t5570-git-daemon.sh
> @@ -192,6 +192,7 @@ test_expect_success 'daemon log records all attributes' '
> GIT_OVERRIDE_VIRTUAL_HOST=localhost \
> git -c protocol.version=1 \
> ls-remote "$GIT_DAEMON_URL/interp.git" &&
> + sleep 1 &&
> grep -i extended.attribute daemon.log | cut -d" " -f2- >actual &&
> test_cmp expect actual
> A slightly better approach may be to use a "sleep on demand":
> + ( grep -i -q extended.attribute daemon.log || sleep 1 ) &&