]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5608-clone-2gb.sh: turn GIT_TEST_CLONE_2GB into a bool
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 22 Nov 2019 13:14:37 +0000 (14:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Nov 2019 02:16:10 +0000 (11:16 +0900)
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 3b072c577b (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 <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/lib.sh
t/t5608-clone-2gb.sh

index c8c2c381552e6e5f422dc2afcb899de7946bae9f..5fca0438b5e309f24ffe1c93a937198d0f16ab68 100755 (executable)
--- a/ci/lib.sh
+++ b/ci/lib.sh
@@ -156,7 +156,7 @@ fi
 
 export DEVELOPER=1
 export DEFAULT_TEST_TARGET=prove
-export GIT_TEST_CLONE_2GB=YesPlease
+export GIT_TEST_CLONE_2GB=true
 
 case "$jobname" in
 linux-clang|linux-gcc)
index 2c6bc07344ccd74447b0cf73186f7818eafc5c94..eee0842888414bd06583feaf1aabf5ea71f1d684 100755 (executable)
@@ -3,7 +3,7 @@
 test_description='Test cloning a repository larger than 2 gigabyte'
 . ./test-lib.sh
 
-if test -z "$GIT_TEST_CLONE_2GB"
+if ! test_bool_env GIT_TEST_CLONE_2GB false
 then
        say 'Skipping expensive 2GB clone test; enable it with GIT_TEST_CLONE_2GB=t'
 else