Subject: Re: [PATCH 07/10] t5500, t5601: skip tests which exercise paths with '[::1]' on Cygwin

From: Taylor Blau <[email-masked]>
Date: Mon, 14 Oct 2024 18:10:16 -0400

On Mon, Oct 14, 2024 at 02:21:31PM +0200, Patrick Steinhardt wrote:
> @@ -806,11 +806,17 @@ do
>  	p=ssh
>  	for h in host [::1]
>  	do
> -		test_expect_success "fetch-pack --diag-url $h:$r" '
> +		expectation="success"
> +		if test_have_prereq CYGWIN && test "$h" = "[::1]"
> +		then
> +			expectation="failure"
> +		fi
> +
> +		test_expect_$expectation "fetch-pack --diag-url $h:$r" '

Very clever :-).

I am not sure what is going on here since I have almost no familiarity
with Cygwin. But this feels like the sort of thing that Johannes
Schindelin (CC'd) would know like the back of their hand, so perhaps he
can illuminate it for us.

Thanks,
Taylor