]> git.ipfire.org Git - thirdparty/git.git/commit
t7527: fix broken TAP output
authorPatrick Steinhardt <ps@pks.im>
Wed, 3 Jun 2026 05:39:44 +0000 (07:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Jun 2026 07:38:04 +0000 (16:38 +0900)
commit9433efd64bd4bfa65fcaa8327276f038ea583df1
treeacf79a718daaf45eb98583781e6e756b2e3c05e8
parent4d11b9c21863c1a860fdf61a9066f0d94c0d692a
t7527: fix broken TAP output

Before running the tests in t7527 we first verify whether the fsmonitor
even works, which seems to depend on the actual filesystem that is in
use. The verification executes outside of any prerequisite or test body,
so its stdout/stderr is not being redirected.

The consequence of this is that any command that prints to stdout/stderr
may break the TAP specification by printing invalid lines. And in fact
we already do that, as git-init(1) prints the path to the created Git
repository by default.

Fix this issue by moving the logic into a lazy prerequisite.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7527-builtin-fsmonitor.sh