Re: [PATCH v3 4/5] t5550: add ICONV prereq to tests that use "$HTTPD_URL/error"
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Feb 20, 2026, 08:00 UTC
- Message-ID
- <aZgUj9BBQUcAwHmS@pks.im>
- In-Reply-To
- <CAPig+cTk_j3qiib1E5McMUPTVY5f36Pq=_8giR_2SKfthY10+g@mail.gmail.com>
On Thu, Feb 19, 2026 at 06:49:14PM -0500, Eric Sunshine wrote:
Show 24 quoted lines
> 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 > > s/proprely/properly/ > > > 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.
Oh, yeah, you're right of course. Will send another version to improve this. Thanks!
Patrick