{"thread":{"id":"66631","subject":"[PATCH 0/2] Make our clar tests ignore the long-tests argument","startedAt":"2026-10-22T11:01:56Z","lastAt":"2026-10-27T17:44:42Z","messageCount":12,"participants":["Kaartic Sivaraam","Patrick Steinhardt","Junio C Hamano","Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"555850","messageId":"20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com","threadId":"66631","inReplyTo":null,"subject":"[PATCH 0/2] Make our clar tests ignore the long-tests argument","fromName":"Kaartic Sivaraam","fromEmail":"kaartic.sivaraam@gmail.com","sentAt":"2026-10-22T11:01:56Z","receivedAt":"2026-10-22T11:01:56Z","isPatch":true,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"This is a small patch to fix a hiccup I hit while trying to run\nour test using the following incantation:\n\n  $ meson test -v --test-args='-ilx'\n\n  ...\n\n  Summary of Failures:\n\n     2/1063 unit-tests                                     FAIL            0.16s   (exit status 129 or signal 1 SIGHUP)\n\n  Ok:                 1061\n  Expected Fail:      0\n  Fail:               1\n  Unexpected Pass:    0\n  Skipped:            1\n  Timeout:            0\n\n  Full log written to /path/to/testlog.txt\n\nOn some exploration, we find the following which shows us what's wrong:\n\n  2/1063 unit-tests RUNNING       \n  >>> ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=103 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /me/git-1/build/t/unit-tests -ilx\n  ――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――\n  error: unknown switch `l'\n  usage: unit-test [<options>]\n\n      -i, --[no-]immediate  immediately exit upon the first failed test\n      -r, --[no-]run suite[::test]\n                            run only test suite or individual test <suite[::test]>\n      --[no-]exclude <suite>\n                            exclude test suite <suite>\n\n  ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\n  2/1063 unit-tests FAIL            0.01s   (exit status 129 or signal 1 SIGHUP)\n\nSo, the '-l' switch that's passed to unit-tests is the problem.\n\nOn searching for how these were handled before, I stumbled across\n9faf3963b6 (t: introduce compatibility options to clar-based tests,\n2024-12-13) which handled this by adding such arguments as NOOP\narguments to t/unit-tests/unit-test.c. So, this patch does the same\nto make unit-test ignore the '-l' passed to it.\n\nThe CI pipeline passes:\n\n - GitHub: https://github.com/sivaraam/git/actions/runs/39756087806\n   (a couple of MacOS ones didn't run owing to the lack of a runner)\n\n - GitLab: https://gitlab.com/gitlab-org/git/-/pipelines/2975804623\n\nSigned-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>\n---\nKaartic Sivaraam (2):\n      unit-tests: reshuffle NOOP arguments to maintain order\n      unit-tests: ignore --long-tests\n\n t/unit-tests/unit-test.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)\n\n${range_diff}\n---\nbase-commit: 47fdf2208c5b94c8cc01c106b8f7c85efb91c926\nchange-id: 20261021-ks-unit-tests-ignore-long-tests-9f32078e9100\n${prerequisites}\n\n\n"},{"id":"555851","messageId":"20261022-ks-unit-tests-ignore-long-tests-v1-1-554a590d418b@gmail.com","threadId":"66631","inReplyTo":"20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com","subject":"[PATCH 1/2] unit-tests: reshuffle NOOP arguments to maintain order","fromName":"Kaartic Sivaraam","fromEmail":"kaartic.sivaraam@gmail.com","sentAt":"2026-10-22T11:01:57Z","receivedAt":"2026-10-22T11:01:57Z","isPatch":true,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"Ever since 9faf3963b6 (t: introduce compatibility options to\nclar-based tests, 2024-12-13), our clar tests have a few NOOP\narguments in order to accept the same arguments that our integration\ntests accept. This makes it easy to pass in test arguments when both\nunit and integration tests are run together such as via:\n\n  $ meson test -v --test-args='-ix'\n\nOn a quick scan, the order of the NOOP arguments seem to be\nalphabetical. That is only until you notice that 'with-dashes'\nappears out of order.\n\nFix this by moving it into its appropriate place thus ensuring\nthey are in alphabetical order. This makes it easy for future\npatches to not worry about where to place a NOOP argument\nthat is not yet in the list.\n\nSigned-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>\n---\n t/unit-tests/unit-test.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/unit-tests/unit-test.c b/t/unit-tests/unit-test.c\nindex 752fb38fb3..d066c8a4c8 100644\n--- a/t/unit-tests/unit-test.c\n+++ b/t/unit-tests/unit-test.c\n@@ -33,12 +33,12 @@ int cmd_main(int argc, const char **argv)\n \t\tOPT_NOOP_ARG(0, \"root\"),\n \t\tOPT_NOOP_ARG(0, \"stress\"),\n \t\tOPT_NOOP_NOARG(0, \"tee\"),\n-\t\tOPT_NOOP_NOARG(0, \"with-dashes\"),\n \t\tOPT_NOOP_ARG(0, \"valgrind\"),\n \t\tOPT_NOOP_ARG(0, \"valgrind-only\"),\n \t\tOPT_NOOP_NOARG('v', \"verbose\"),\n \t\tOPT_NOOP_NOARG('V', \"verbose-log\"),\n \t\tOPT_NOOP_ARG(0, \"verbose-only\"),\n+\t\tOPT_NOOP_NOARG(0, \"with-dashes\"),\n \t\tOPT_NOOP_NOARG('x', NULL),\n \t\tOPT_END(),\n \t};\n\n-- \n2.56.0.99.g5a7d1e8045.dirty\n\n\n"},{"id":"555852","messageId":"20261022-ks-unit-tests-ignore-long-tests-v1-2-554a590d418b@gmail.com","threadId":"66631","inReplyTo":"20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com","subject":"[PATCH 2/2] unit-tests: ignore --long-tests","fromName":"Kaartic Sivaraam","fromEmail":"kaartic.sivaraam@gmail.com","sentAt":"2026-10-22T11:01:58Z","receivedAt":"2026-10-22T11:01:58Z","isPatch":true,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"In the same spirit as 9faf3963b6 (t: introduce compatibility options to\nclar-based tests, 2024-12-13), we should ignore -l / --long-tests passed\nto our clar tests. It may be passed along while manually running tests\nvia a command as follows:\n\n  $ meson test -v --test-args='-ilx'\n\nSo, ignore -l / --long-tests in our clar tests.\n\nThis does not show up as a problem while running our CI as we enable\nthe expensive prerequiiste via the GIT_TEST_LONG env variable.\n\nSigned-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>\n---\n t/unit-tests/unit-test.c | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/t/unit-tests/unit-test.c b/t/unit-tests/unit-test.c\nindex d066c8a4c8..06ffd0f5bb 100644\n--- a/t/unit-tests/unit-test.c\n+++ b/t/unit-tests/unit-test.c\n@@ -28,6 +28,7 @@ int cmd_main(int argc, const char **argv)\n \t\t */\n \t\tOPT_NOOP_NOARG('d', \"debug\"),\n \t\tOPT_NOOP_NOARG(0, \"github-workflow-markup\"),\n+\t\tOPT_NOOP_NOARG('l', \"long-tests\"),\n \t\tOPT_NOOP_NOARG(0, \"no-bin-wrappers\"),\n \t\tOPT_NOOP_ARG(0, \"no-chain-lint\"),\n \t\tOPT_NOOP_ARG(0, \"root\"),\n\n-- \n2.56.0.99.g5a7d1e8045.dirty\n\n\n"},{"id":"555953","messageId":"atsDuCBc5J2lXOuU@pks.im","threadId":"66631","inReplyTo":"20261022-ks-unit-tests-ignore-long-tests-v1-1-554a590d418b@gmail.com","subject":"Re: [PATCH 1/2] unit-tests: reshuffle NOOP arguments to maintain order","fromName":"Patrick Steinhardt","fromEmail":"ps@pks.im","sentAt":"2026-10-23T06:50:32Z","receivedAt":"2026-10-23T06:50:32Z","isPatch":true,"sender":{"key":"ps@pks.im","avatar":"https://avatars.githubusercontent.com/u/4056630?v=4"},"body":"On Thu, Oct 22, 2026 at 04:31:57PM +0530, Kaartic Sivaraam wrote:\n> diff --git a/t/unit-tests/unit-test.c b/t/unit-tests/unit-test.c\n> index 752fb38fb3..d066c8a4c8 100644\n> --- a/t/unit-tests/unit-test.c\n> +++ b/t/unit-tests/unit-test.c\n> @@ -33,12 +33,12 @@ int cmd_main(int argc, const char **argv)\n>  \t\tOPT_NOOP_ARG(0, \"root\"),\n>  \t\tOPT_NOOP_ARG(0, \"stress\"),\n>  \t\tOPT_NOOP_NOARG(0, \"tee\"),\n> -\t\tOPT_NOOP_NOARG(0, \"with-dashes\"),\n>  \t\tOPT_NOOP_ARG(0, \"valgrind\"),\n>  \t\tOPT_NOOP_ARG(0, \"valgrind-only\"),\n>  \t\tOPT_NOOP_NOARG('v', \"verbose\"),\n>  \t\tOPT_NOOP_NOARG('V', \"verbose-log\"),\n>  \t\tOPT_NOOP_ARG(0, \"verbose-only\"),\n> +\t\tOPT_NOOP_NOARG(0, \"with-dashes\"),\n>  \t\tOPT_NOOP_NOARG('x', NULL),\n>  \t\tOPT_END(),\n>  \t};\n\nMakes sense, and the list is indeed sorted after this change.\n\nPatrick\n\n"},{"id":"555954","messageId":"atsDvfHx3_EkrI6Z@pks.im","threadId":"66631","inReplyTo":"20261022-ks-unit-tests-ignore-long-tests-v1-2-554a590d418b@gmail.com","subject":"Re: [PATCH 2/2] unit-tests: ignore --long-tests","fromName":"Patrick Steinhardt","fromEmail":"ps@pks.im","sentAt":"2026-10-23T06:50:37Z","receivedAt":"2026-10-23T06:50:37Z","isPatch":true,"sender":{"key":"ps@pks.im","avatar":"https://avatars.githubusercontent.com/u/4056630?v=4"},"body":"On Thu, Oct 22, 2026 at 04:31:58PM +0530, Kaartic Sivaraam wrote:\n> In the same spirit as 9faf3963b6 (t: introduce compatibility options to\n> clar-based tests, 2024-12-13), we should ignore -l / --long-tests passed\n> to our clar tests. It may be passed along while manually running tests\n> via a command as follows:\n> \n>   $ meson test -v --test-args='-ilx'\n> \n> So, ignore -l / --long-tests in our clar tests.\n\nTIL, I didn't even know we had this switch to run long tests. That makes\nme wonder whether we should have an \"--features-testbed\" switch to make\nit easy to run tests same as our CI job that sets all those test\nvariables, and then adapt CI to use it. It's always a pain to specify\nall of these environment variables.\n\nThat's of course outside of the scope of this patch series, but I've got\na pending series where I may be able to squeeze this into.\n\n> This does not show up as a problem while running our CI as we enable\n> the expensive prerequiiste via the GIT_TEST_LONG env variable.\n\ns/prerequiiste/prerequisite/\n\n> diff --git a/t/unit-tests/unit-test.c b/t/unit-tests/unit-test.c\n> index d066c8a4c8..06ffd0f5bb 100644\n> --- a/t/unit-tests/unit-test.c\n> +++ b/t/unit-tests/unit-test.c\n> @@ -28,6 +28,7 @@ int cmd_main(int argc, const char **argv)\n>  \t\t */\n>  \t\tOPT_NOOP_NOARG('d', \"debug\"),\n>  \t\tOPT_NOOP_NOARG(0, \"github-workflow-markup\"),\n> +\t\tOPT_NOOP_NOARG('l', \"long-tests\"),\n>  \t\tOPT_NOOP_NOARG(0, \"no-bin-wrappers\"),\n>  \t\tOPT_NOOP_ARG(0, \"no-chain-lint\"),\n>  \t\tOPT_NOOP_ARG(0, \"root\"),\n\nLooks obviously good to me, thanks!\n\nPatrick\n\n"},{"id":"555957","messageId":"57e42fb9-b60d-43d5-abef-432ddf8da34d@gmail.com","threadId":"66631","inReplyTo":"atsDvfHx3_EkrI6Z@pks.im","subject":"Re: [PATCH 2/2] unit-tests: ignore --long-tests","fromName":"Kaartic Sivaraam","fromEmail":"kaartic.sivaraam@gmail.com","sentAt":"2026-10-23T07:15:16Z","receivedAt":"2026-10-23T07:15:16Z","isPatch":true,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"On 10/23/26 12:20, Patrick Steinhardt wrote:\n>>\n>>    $ meson test -v --test-args='-ilx'\n>>\n>> So, ignore -l / --long-tests in our clar tests.\n> > TIL, I didn't even know we had this switch to run long tests. That makes\n> me wonder whether we should have an \"--features-testbed\" switch to make\n> it easy to run tests same as our CI job that sets all those test\n> variables, and then adapt CI to use it. It's always a pain to specify\n> all of these environment variables.\n> That would indeed be a good addition! It may help us easily emulate the feature-testbed job locally. I say \"easy\" hoping it does not need any kind of additional niche dependency in order to run locally. It seems so on taking a quick look at the the CI script :-)\n\n> That's of course outside of the scope of this patch series, but I've got\n> a pending series where I may be able to squeeze this into.\n> Cool!\n\n>> This does not show up as a problem while running our CI as we enable\n>> the expensive prerequiiste via the GIT_TEST_LONG env variable.\n> > s/prerequiiste/prerequisite/\n>\n\nGood catch. Will fix this!\n>> diff --git a/t/unit-tests/unit-test.c b/t/unit-tests/unit-test.c\n>> index d066c8a4c8..06ffd0f5bb 100644\n>> --- a/t/unit-tests/unit-test.c\n>> +++ b/t/unit-tests/unit-test.c\n>> @@ -28,6 +28,7 @@ int cmd_main(int argc, const char **argv)\n>>   \t\t */\n>>   \t\tOPT_NOOP_NOARG('d', \"debug\"),\n>>   \t\tOPT_NOOP_NOARG(0, \"github-workflow-markup\"),\n>> +\t\tOPT_NOOP_NOARG('l', \"long-tests\"),\n>>   \t\tOPT_NOOP_NOARG(0, \"no-bin-wrappers\"),\n>>   \t\tOPT_NOOP_ARG(0, \"no-chain-lint\"),\n>>   \t\tOPT_NOOP_ARG(0, \"root\"),\n> > Looks obviously good to me, thanks!\n>\n\nThanks for the prompt review!\n\n-- \nSivaraam\n\n\n"},{"id":"556260","messageId":"20261026-ks-unit-tests-ignore-long-tests-v2-0-fdbbefbd19fb@gmail.com","threadId":"66631","inReplyTo":"20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com","subject":"[PATCH v2 0/2] Make our clar tests ignore the long-tests argument","fromName":"Kaartic Sivaraam","fromEmail":"kaartic.sivaraam@gmail.com","sentAt":"2026-10-26T07:31:03Z","receivedAt":"2026-10-26T07:31:03Z","isPatch":true,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"(Resending in the proper thread. Still trying to figure out how to make b4 send\n v2 in the proper thread. Sorry for the noise!)\n\nThis is a small patch to fix a hiccup I hit while trying to run\nour test using the following incantation:\n\n  $ meson test -v --test-args='-ilx'\n\n  ...\n\n  Summary of Failures:\n\n     2/1063 unit-tests                                     FAIL            0.16s   (exit status 129 or signal 1 SIGHUP)\n\n  Ok:                 1061\n  Expected Fail:      0\n  Fail:               1\n  Unexpected Pass:    0\n  Skipped:            1\n  Timeout:            0\n\n  Full log written to /path/to/testlog.txt\n\nOn some exploration, we find the following which shows us what's wrong:\n\n  2/1063 unit-tests RUNNING\n  >>> ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=103 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /me/git-1/build/t/unit-tests -ilx\n  ――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――\n  error: unknown switch `l'\n  usage: unit-test [<options>]\n\n      -i, --[no-]immediate  immediately exit upon the first failed test\n      -r, --[no-]run suite[::test]\n                            run only test suite or individual test <suite[::test]>\n      --[no-]exclude <suite>\n                            exclude test suite <suite>\n\n  ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\n  2/1063 unit-tests FAIL            0.01s   (exit status 129 or signal 1 SIGHUP)\n\nSo, the '-l' switch that's passed to unit-tests is the problem.\n\nOn searching for how these were handled before, I stumbled across\n9faf3963b6 (t: introduce compatibility options to clar-based tests,\n2024-12-13) which handled this by adding such arguments as NOOP\narguments to t/unit-tests/unit-test.c. So, this patch does the same\nto make unit-test ignore the '-l' passed to it.\n\nThe CI pipeline passes (for v1. v2 only had a commit message change):\n\n - GitHub: https://github.com/sivaraam/git/actions/runs/39756087806\n   (a couple of MacOS ones didn't run owing to the lack of a runner)\n\n- GitLab: https://gitlab.com/gitlab-org/git/-/pipelines/2975804623\n\n---\nChanges in v2:\n- Fixed the s/prerequiiste/prerequisite/ typo in the commit message\n\n- Link to v1: https://lore.kernel.org/r/20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com\n\nRange-diff vs. v1:\n\n1:  66759f627c = 1:  60bc3f0d83 unit-tests: reshuffle NOOP arguments to maintain order\n2:  0bea06fe46 ! 2:  c39dd72a2b unit-tests: ignore --long-tests\n    @@ Commit message\n         So, ignore -l / --long-tests in our clar tests.\n\n         This does not show up as a problem while running our CI as we enable\n    -    the expensive prerequiiste via the GIT_TEST_LONG env variable.\n    +    the expensive prerequisite via the GIT_TEST_LONG env variable.\n\n         Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>\n\n---\nKaartic Sivaraam (2):\n      unit-tests: reshuffle NOOP arguments to maintain order\n      unit-tests: ignore --long-tests\n\n t/unit-tests/unit-test.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)\n\n---\nbase-commit: 47fdf2208c5b94c8cc01c106b8f7c85efb91c926\nchange-id: 20261021-ks-unit-tests-ignore-long-tests-9f32078e9100\n-- \nKaartic Sivaraam <kaartic.sivaraam@gmail.com>\n\n\n"},{"id":"556261","messageId":"20261026-ks-unit-tests-ignore-long-tests-v2-1-fdbbefbd19fb@gmail.com","threadId":"66631","inReplyTo":"20261026-ks-unit-tests-ignore-long-tests-v2-0-fdbbefbd19fb@gmail.com","subject":"[PATCH v2 1/2] unit-tests: reshuffle NOOP arguments to maintain order","fromName":"Kaartic Sivaraam","fromEmail":"kaartic.sivaraam@gmail.com","sentAt":"2026-10-26T07:31:04Z","receivedAt":"2026-10-26T07:31:04Z","isPatch":true,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"Ever since 9faf3963b6 (t: introduce compatibility options to\nclar-based tests, 2024-12-13), our clar tests have a few NOOP\narguments in order to accept the same arguments that our integration\ntests accept. This makes it easy to pass in test arguments when both\nunit and integration tests are run together such as via:\n\n  $ meson test -v --test-args='-ix'\n\nOn a quick scan, the order of the NOOP arguments seem to be\nalphabetical. That is only until you notice that 'with-dashes'\nappears out of order.\n\nFix this by moving it into its appropriate place thus ensuring\nthey are in alphabetical order. This makes it easy for future\npatches to not worry about where to place a NOOP argument\nthat is not yet in the list.\n\nSigned-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>\n---\n t/unit-tests/unit-test.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/unit-tests/unit-test.c b/t/unit-tests/unit-test.c\nindex 752fb38fb3..d066c8a4c8 100644\n--- a/t/unit-tests/unit-test.c\n+++ b/t/unit-tests/unit-test.c\n@@ -33,12 +33,12 @@ int cmd_main(int argc, const char **argv)\n \t\tOPT_NOOP_ARG(0, \"root\"),\n \t\tOPT_NOOP_ARG(0, \"stress\"),\n \t\tOPT_NOOP_NOARG(0, \"tee\"),\n-\t\tOPT_NOOP_NOARG(0, \"with-dashes\"),\n \t\tOPT_NOOP_ARG(0, \"valgrind\"),\n \t\tOPT_NOOP_ARG(0, \"valgrind-only\"),\n \t\tOPT_NOOP_NOARG('v', \"verbose\"),\n \t\tOPT_NOOP_NOARG('V', \"verbose-log\"),\n \t\tOPT_NOOP_ARG(0, \"verbose-only\"),\n+\t\tOPT_NOOP_NOARG(0, \"with-dashes\"),\n \t\tOPT_NOOP_NOARG('x', NULL),\n \t\tOPT_END(),\n \t};\n\n-- \n2.56.0.99.g5a7d1e8045.dirty\n\n\n"},{"id":"556262","messageId":"20261026-ks-unit-tests-ignore-long-tests-v2-2-fdbbefbd19fb@gmail.com","threadId":"66631","inReplyTo":"20261026-ks-unit-tests-ignore-long-tests-v2-0-fdbbefbd19fb@gmail.com","subject":"[PATCH v2 2/2] unit-tests: ignore --long-tests","fromName":"Kaartic Sivaraam","fromEmail":"kaartic.sivaraam@gmail.com","sentAt":"2026-10-26T07:31:05Z","receivedAt":"2026-10-26T07:31:05Z","isPatch":true,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"In the same spirit as 9faf3963b6 (t: introduce compatibility options to\nclar-based tests, 2024-12-13), we should ignore -l / --long-tests passed\nto our clar tests. It may be passed along while manually running tests\nvia a command as follows:\n\n  $ meson test -v --test-args='-ilx'\n\nSo, ignore -l / --long-tests in our clar tests.\n\nThis does not show up as a problem while running our CI as we enable\nthe expensive prerequisite via the GIT_TEST_LONG env variable.\n\nSigned-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>\n---\n t/unit-tests/unit-test.c | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/t/unit-tests/unit-test.c b/t/unit-tests/unit-test.c\nindex d066c8a4c8..06ffd0f5bb 100644\n--- a/t/unit-tests/unit-test.c\n+++ b/t/unit-tests/unit-test.c\n@@ -28,6 +28,7 @@ int cmd_main(int argc, const char **argv)\n \t\t */\n \t\tOPT_NOOP_NOARG('d', \"debug\"),\n \t\tOPT_NOOP_NOARG(0, \"github-workflow-markup\"),\n+\t\tOPT_NOOP_NOARG('l', \"long-tests\"),\n \t\tOPT_NOOP_NOARG(0, \"no-bin-wrappers\"),\n \t\tOPT_NOOP_ARG(0, \"no-chain-lint\"),\n \t\tOPT_NOOP_ARG(0, \"root\"),\n\n-- \n2.56.0.99.g5a7d1e8045.dirty\n\n\n"},{"id":"556271","messageId":"at8LHqyBm9Y0JE-1@pks.im","threadId":"66631","inReplyTo":"20261026-ks-unit-tests-ignore-long-tests-v2-0-fdbbefbd19fb@gmail.com","subject":"Re: [PATCH v2 0/2] Make our clar tests ignore the long-tests argument","fromName":"Patrick Steinhardt","fromEmail":"ps@pks.im","sentAt":"2026-10-26T08:11:10Z","receivedAt":"2026-10-26T08:11:10Z","isPatch":true,"sender":{"key":"ps@pks.im","avatar":"https://avatars.githubusercontent.com/u/4056630?v=4"},"body":"On Mon, Oct 26, 2026 at 01:01:03PM +0530, Kaartic Sivaraam wrote:\n> Changes in v2:\n> - Fixed the s/prerequiiste/prerequisite/ typo in the commit message\n> \n> - Link to v1: https://lore.kernel.org/r/20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com\n\nThanks, this version looks good to me.\n\nPatrick\n\n"},{"id":"556369","messageId":"xmqqzew0sarl.fsf@gitster.g","threadId":"66631","inReplyTo":"at8LHqyBm9Y0JE-1@pks.im","subject":"Re: [PATCH v2 0/2] Make our clar tests ignore the long-tests argument","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2026-10-26T16:10:38Z","receivedAt":"2026-10-26T16:10:38Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Patrick Steinhardt <ps@pks.im> writes:\n\n> On Mon, Oct 26, 2026 at 01:01:03PM +0530, Kaartic Sivaraam wrote:\n>> Changes in v2:\n>> - Fixed the s/prerequiiste/prerequisite/ typo in the commit message\n>> \n>> - Link to v1: https://lore.kernel.org/r/20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com\n>\n> Thanks, this version looks good to me.\n>\n> Patrick\n\nThanks for writing and reviewing.  Will queue.\n\n"},{"id":"556547","messageId":"20261027174442.GA97882@coredump.intra.peff.net","threadId":"66631","inReplyTo":"20261026-ks-unit-tests-ignore-long-tests-v2-0-fdbbefbd19fb@gmail.com","subject":"Re: [PATCH v2 0/2] Make our clar tests ignore the long-tests argument","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2026-10-27T17:44:42Z","receivedAt":"2026-10-27T17:44:42Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Oct 26, 2026 at 01:01:03PM +0530, Kaartic Sivaraam wrote:\n\n> On searching for how these were handled before, I stumbled across\n> 9faf3963b6 (t: introduce compatibility options to clar-based tests,\n> 2024-12-13) which handled this by adding such arguments as NOOP\n> arguments to t/unit-tests/unit-test.c. So, this patch does the same\n> to make unit-test ignore the '-l' passed to it.\n\nYour patch looks obviously good, but it prompted me to polish and send\nin a much larger fix that I think makes this fallback option parsing\nobsolete:\n\n  https://lore.kernel.org/git/20261027173205.GA97799@coredump.intra.peff.net/\n\nI don't propose to replace your series here with mine, but just that you\nmight be interested in it. ;)\n\n-Peff\n\n"}]}