tests: disable interactive hunk selection tests if perl is not available

These are all backed by git-add--interactive.perl under the hood.

Signed-off-by: Jeff King <peff@peff.net>
Acked-By: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King 2009-08-18 02:12:44 -04:00 committed by Junio C Hamano
parent f300fab544
commit 933766c1a9

View file

@ -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" &&