t: use `test_bool_env` to parse GIT_TEST_LONG

It's currently hard to explicitly disable GIT_TEST_LONG by setting it to `false`. Fix this by using `test_bool_env` instead. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Jul 6, 2026 at 08:24 UTC 886c7b4ac2ae79c6a06849bad490d3370c438047
2 files changed +3 -3
ci/lib.sh
+1 -1
@@ -321,7 +321,7 @@ export SKIP_DASHED_BUILT_INS=YesPlease
321 # enable the long tests for pushes to the integration branches as well.
322 case "$GITHUB_EVENT_NAME,$CI_BRANCH" in
323 pull_request,*|push,*next*|push,*master*|push,*main*|push,*maint*)
324 - export GIT_TEST_LONG=YesPlease
324 + export GIT_TEST_LONG=true
325 ;;
326 esac
327
t/test-lib.sh
+2 -2
@@ -210,7 +210,7 @@ parse_option () {
210 -i|--i|--im|--imm|--imme|--immed|--immedi|--immedia|--immediat|--immediate)
211 immediate=t ;;
212 -l|--l|--lo|--lon|--long|--long-|--long-t|--long-te|--long-tes|--long-test|--long-tests)
213 - GIT_TEST_LONG=t; export GIT_TEST_LONG ;;
213 + GIT_TEST_LONG=true; export GIT_TEST_LONG ;;
214 -r)
215 mark_option_requires_arg "$opt" run_list
216 ;;
@@ -1849,7 +1849,7 @@ test_lazy_prereq AUTOIDENT '
1849 '
1850
1851 test_lazy_prereq EXPENSIVE '
1852 - test -n "$GIT_TEST_LONG"
1852 + test_bool_env GIT_TEST_LONG false
1853 '
1854
1855 test_lazy_prereq EXPENSIVE_ON_WINDOWS '