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>
Jeff King committed
Aug 18, 2009 at 02:12 UTC
933766c1a9df4981aa99120e192d8444150c9765
1 file changed
+5
t/lib-patch-mode.sh
+5
@@ -1,5 +1,10 @@
1
. ./test-lib.sh
2
3
+if ! test_have_prereq PERL; then
4
+ say 'skipping --patch tests, perl not available'
5
+ test_done
6
+fi
7
+
8
set_state () {
9
echo "$3" > "$1" &&
10
git add "$1" &&