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

[PATCH 3/3] t9020-*.sh: Skip all tests when python not available

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Aug 25, 2012, 17:26 UTC
Message-ID
<50390AAE.6090602@ramsay1.demon.co.uk>
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
Hi Florian,

Since python is not installed on MinGW, this test fails with an "unable to spawn script" type message when attempting to execute svnrdump. So, could you, in addition to the previous patch, squash this into commit 2d597d73 ("Add a test script for remote-svn", 20-08-2012).

Thanks!

ATB, Ramsay Jones

 t/t9020-remote-svn.sh | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/t/t9020-remote-svn.sh b/t/t9020-remote-svn.sh
index cd7604e..e6ed4ca 100755
--- a/t/t9020-remote-svn.sh
+++ b/t/t9020-remote-svn.sh
@@ -4,6 +4,12 @@ test_description='tests remote-svn'
 
 . ./test-lib.sh
 
+if ! test_have_prereq PYTHON
+then
+	skip_all='skipping remote-svn tests, python not available'
+	test_done
+fi
+
 # We override svnrdump by placing a symlink to the svnrdump-emulator in .
 export PATH="$HOME:$PATH"
 ln -sf $GIT_BUILD_DIR/contrib/svn-fe/svnrdump_sim.py "$HOME/svnrdump"
-- 
1.7.12
Message 1 of 1 in “t9020-*.sh: Skip all tests when python not available”
  1. 3/3 t9020-*.sh: Skip all tests when python not availableRamsay Jones, Aug 25, 2012

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.