Skip to content

Commit

Permalink
tests: disable interactive hunk selection tests if perl is not available
Browse files Browse the repository at this point in the history
These are all backed by git-add--interactive.perl under the hood.

Signed-off-by: Jeff King <[email protected]>
Acked-By: Thomas Rast <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
peff authored and gitster committed Aug 18, 2009
1 parent f300fab commit 933766c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/lib-patch-mode.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
. ./test-lib.sh

if ! test_have_prereq PERL; then
say 'skipping --patch tests, perl not available'
test_done
fi

set_state () {
echo "$3" > "$1" &&
git add "$1" &&
Expand Down

0 comments on commit 933766c

Please sign in to comment.