]> git.ipfire.org Git - thirdparty/git.git/commitdiff
unit-test: ignore --no-chain-lint
authorJeff King <peff@peff.net>
Tue, 18 Nov 2025 09:32:43 +0000 (04:32 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Nov 2025 17:45:28 +0000 (09:45 -0800)
In the same spirit as 9faf3963b6 (t: introduce compatibility options to
clar-based tests, 2024-12-13), we should ignore --no-chain-lint passed
to our clar tests, since it may appear in GIT_TEST_OPTS to be used with
other tests.

This is particularly important on Windows CI, where --no-chain-lint is
added to the test options by default, and the meson build will pass all
options to the unit tests. The only reason our meson Windows CI job does
not run into this currently is that it is not respecting GIT_TEST_OPTS
at all! So ignoring this option is a prerequisite to fixing that
situation.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/unit-test.c

index 5af645048adf4e5f7ca236f873b07a02b76bb254..752fb38fb324a11df378da3e7b93528917f3de17 100644 (file)
@@ -29,6 +29,7 @@ int cmd_main(int argc, const char **argv)
                OPT_NOOP_NOARG('d', "debug"),
                OPT_NOOP_NOARG(0, "github-workflow-markup"),
                OPT_NOOP_NOARG(0, "no-bin-wrappers"),
+               OPT_NOOP_ARG(0, "no-chain-lint"),
                OPT_NOOP_ARG(0, "root"),
                OPT_NOOP_ARG(0, "stress"),
                OPT_NOOP_NOARG(0, "tee"),