aboutsummaryrefslogtreecommitdiff
path: root/t/lib-patch-mode.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-08-18 02:12:44 -0400
committerJunio C Hamano <gitster@pobox.com>2009-08-18 12:28:42 -0700
commit933766c1a9df4981aa99120e192d8444150c9765 (patch)
tree53618a43d03f68dd51975d36af194cb615213379 /t/lib-patch-mode.sh
parentf300fab5440f25aabb22c6d1fec411ee10e154b1 (diff)
downloadgit-933766c1a9df4981aa99120e192d8444150c9765.tar.gz
git-933766c1a9df4981aa99120e192d8444150c9765.tar.xz
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>
Diffstat (limited to 't/lib-patch-mode.sh')
-rwxr-xr-xt/lib-patch-mode.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/lib-patch-mode.sh b/t/lib-patch-mode.sh
index afb4b6686..75a3ee283 100755
--- a/t/lib-patch-mode.sh
+++ b/t/lib-patch-mode.sh
@@ -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" &&