git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jeff King <peff@peff.net>
Date
Aug 18, 2009, 06:12 UTC
Message-ID
<20090818061244.GA20659@coredump.intra.peff.net>

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(-)
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
Next: Thomas Rast
Message 1 of 2 in “tests: disable interactive hunk selection tests if perl not available”
  1. tests: disable interactive hunk selection tests if perl not availableJeff King, Aug 18, 2009
  2. Thomas RastAug 18, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.