Skip to content

Commit 64ec8ef

Browse files
dschogitster
authored andcommitted
t6132(NO_PERL): do not run the scripted add -p
When using the non-built-in version of `git add -p` in a `NO_PERL` build, we expect that invocation to fail. However, when b02fdbc (pathspec: correct an empty string used as a pathspec element, 2022-05-29) added a test case to t6132 to exercise `git add -p`, it did not add appropriate prereqs (which admittedly did not exist back then). Let's specify the appropriate prereqs. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7524780 commit 64ec8ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

t/t6132-pathspec-exclude.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,11 @@ test_expect_success 'add with all negative' '
293293
test_cmp expect actual
294294
'
295295

296-
test_expect_success 'add -p with all negative' '
296+
test_lazy_prereq ADD_I_USE_BUILTIN_OR_PERL '
297+
test_have_prereq ADD_I_USE_BUILTIN || test_have_prereq PERL
298+
'
299+
300+
test_expect_success ADD_I_USE_BUILTIN_OR_PERL 'add -p with all negative' '
297301
H=$(git rev-parse HEAD) &&
298302
git reset --hard $H &&
299303
git clean -f &&

0 commit comments

Comments
 (0)