tests: disable interactive hunk selection tests if perl is not available
authorJeff King <peff@peff.net>
Tue, 18 Aug 2009 06:12:44 +0000 (02:12 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Aug 2009 19:28:42 +0000 (12:28 -0700)
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>
t/lib-patch-mode.sh

index afb4b6686c8acc8f274fbaacbb7380adcbd23648..75a3ee283d49f4ddc3ba05fbb9999de75d2a75f0 100755 (executable)
@@ -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" &&