]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t3701: test the built-in `add -i` regardless of NO_PERL
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 30 Aug 2022 13:54:23 +0000 (13:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Aug 2022 17:40:46 +0000 (10:40 -0700)
The built-in `git add --interactive` does not require Perl, therefore we
can safely run these tests even when building with `NO_PERL=LetsDoThat`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3701-add-interactive.sh

index b354fb39de839aba1506693ee4a0cd7d4967d656..8d16cd45821f7ebbef3db882ee3b12ecc63f261c 100755 (executable)
@@ -7,9 +7,9 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-terminal.sh
 
-if ! test_have_prereq PERL
+if test_have_prereq !ADD_I_USE_BUILTIN,!PERL
 then
-       skip_all='skipping add -i tests, perl not available'
+       skip_all='skipping add -i (scripted) tests, perl not available'
        test_done
 fi