threads / patch / 20649

patchtests: disable interactive hunk selection tests if perl not available

Subject: [PATCH] tests: disable interactive hunk selection tests if perl not available

## tl;dr

2 messages between Aug 18, 2009 and Aug 18, 2009. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Jeff King· Aug 18, 2009, 06:12 UTC · lore

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

Signed-off-by: Jeff King <peff@peff.net>
---
On top of tr/reset-checkout-patch.
 t/lib-patch-mode.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
Show changes to t/lib-patch-mode.sh +5 −0
diff --git a/t/lib-patch-mode.sh b/t/lib-patch-mode.sh
index afb4b66..75a3ee2 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" &&
-- 
1.6.4.301.g8099b
Thomas Rast· Aug 18, 2009, 08:33 UTC · re: Jeff King · lore

Re: [PATCH] tests: disable interactive hunk selection tests if perl not available

Jeff King wrote:
Show 5 quoted lines
> +++ b/t/lib-patch-mode.sh
> @@ -1,5 +1,10 @@
>  . ./test-lib.sh
>  
> +if ! test_have_prereq PERL; then
Thanks.  I always forget about these little things...
Acked-By: Thomas Rast <trast@student.ethz.ch>
-- 
Thomas Rast
trast@{inf,student}.ethz.ch

← back to recent threads