summaryrefslogtreecommitdiff
path: root/t/unit-tests/unit-test.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2025-11-18 04:32:43 -0500
committerJunio C Hamano <gitster@pobox.com>2025-11-18 09:45:28 -0800
commite96105aa1741ebb61c17a59aee962058a3743e09 (patch)
tree0ff5a74ccd9aca2237f79fe33c72beb3f125e585 /t/unit-tests/unit-test.c
parentbb5c624209fcaebd60b9572b2cc8c61086e39b57 (diff)
unit-test: ignore --no-chain-lint
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>
Diffstat (limited to 't/unit-tests/unit-test.c')
-rw-r--r--t/unit-tests/unit-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/unit-tests/unit-test.c b/t/unit-tests/unit-test.c
index 5af645048a..752fb38fb3 100644
--- a/t/unit-tests/unit-test.c
+++ b/t/unit-tests/unit-test.c
@@ -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"),