Skip to content

Commit e96105a

Browse files
peffgitster
authored andcommitted
unit-test: ignore --no-chain-lint
In the same spirit as 9faf396 (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>
1 parent bb5c624 commit e96105a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/unit-tests/unit-test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ int cmd_main(int argc, const char **argv)
2929
OPT_NOOP_NOARG('d', "debug"),
3030
OPT_NOOP_NOARG(0, "github-workflow-markup"),
3131
OPT_NOOP_NOARG(0, "no-bin-wrappers"),
32+
OPT_NOOP_ARG(0, "no-chain-lint"),
3233
OPT_NOOP_ARG(0, "root"),
3334
OPT_NOOP_ARG(0, "stress"),
3435
OPT_NOOP_NOARG(0, "tee"),

0 commit comments

Comments
 (0)