Skip to content

Commit a85efb5

Browse files
szedergitster
authored andcommitted
t5608-clone-2gb.sh: turn GIT_TEST_CLONE_2GB into a bool
The GIT_TEST_CLONE_2GB environment variable is only ever checked with 'test -z' in 't5608-clone-2gb.sh', so any non-empty value is interpreted as "yes, run these expensive tests", even 'GIT_TEST_CLONE_2GB=NoThanks'. Similar GIT_TEST_* environment variables have already been turned into bools in 3b072c5 (tests: replace test_tristate with "git env--helper", 2019-06-21), so let's turn GIT_TEST_CLONE_2GB into a bool as well, to follow suit. Our CI builds set GIT_TEST_CLONE_2GB=YesPlease, so adjust them accordingly, thus removing the last 'YesPlease' from our CI scripts. Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 43a2afe commit a85efb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fi
156156

157157
export DEVELOPER=1
158158
export DEFAULT_TEST_TARGET=prove
159-
export GIT_TEST_CLONE_2GB=YesPlease
159+
export GIT_TEST_CLONE_2GB=true
160160

161161
case "$jobname" in
162162
linux-clang|linux-gcc)

t/t5608-clone-2gb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
test_description='Test cloning a repository larger than 2 gigabyte'
44
. ./test-lib.sh
55

6-
if test -z "$GIT_TEST_CLONE_2GB"
6+
if ! test_bool_env GIT_TEST_CLONE_2GB false
77
then
88
say 'Skipping expensive 2GB clone test; enable it with GIT_TEST_CLONE_2GB=t'
99
else

0 commit comments

Comments
 (0)