Re: [PATCH v3 4/5] t5550: add ICONV prereq to tests that use "$HTTPD_URL/error"
On Wed, Feb 18, 2026 at 4:17 AM Patrick Steinhardt <ps@pks.im> wrote:
> We've got a bunch of tests in t5550 that connect to "$HTTPD_URL/error"
> to ensure that error messages are proprely forwarded. This URL executes
Show 14 quoted lines
> the "t/lib-httpd/error.sh" script, which in turn depends on the iconv(1)
> executable to reencode the message.
>
> This executable may not exist on platforms, which will make the tests
> fail. Guard them with the ICONV prereq to fix such failures.
>
> Signed-off-by: Patrick Steinhardt <ps@pks.im>
> ---
> diff --git a/t/t5550-http-fetch-dumb.sh b/t/t5550-http-fetch-dumb.sh
> @@ -339,32 +339,32 @@ test_expect_success 'fetch can handle previously-fetched .idx files' '
> test_expect_success 'did not use upload-pack service' '
> - ! grep "/git-upload-pack" "$HTTPD_ROOT_PATH/access.log"
> + ! test_grep "/git-upload-pack" "$HTTPD_ROOT_PATH/access.log"
> '
You want to be using `test_grep !` here rather than `! test_grep`, don't you?
Same comment applies to several other tests touched by this patch.