]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/lib-patch-mode.sh
tests: disable interactive hunk selection tests if perl is not available
[thirdparty/git.git] / 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" &&