t3701: test the built-in `add -i` regardless of NO_PERL
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>
Johannes Schindelin committed
Aug 30, 2022 at 13:54 UTC
75247802550185d844212df7911dc5f462ac7713
1 file changed
+2
-2
t/t3701-add-interactive.sh
+2
-2
@@ -7,9 +7,9 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7
. ./test-lib.sh
8
. "$TEST_DIRECTORY"/lib-terminal.sh
9
10
-if ! test_have_prereq PERL
10
+if test_have_prereq !ADD_I_USE_BUILTIN,!PERL
11
then
12
- skip_all='skipping add -i tests, perl not available'
12
+ skip_all='skipping add -i (scripted) tests, perl not available'
13
test_done
14
fi
15