]> Kevux Git Server - rit/commit
t7527: fix broken TAP output
authorPatrick Steinhardt <ps@pks.im>
Thu, 4 Jun 2026 10:07:34 +0000 (12:07 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2026 12:49:00 +0000 (21:49 +0900)
commitbf3ed750cb4479db9e8193ae1937b2723054ce48
tree3a19c2a34d70dcb2ffc7b4897fb5cc65e6ed1e5f
parent43a6a005c8970f13c46202e821111f9e42538b9d
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