git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests: handle NO_PYTHON setting
@ 2009-11-30  7:52 Jeff King
  2009-11-30  7:55 ` Sverre Rabbelier
  2009-11-30 18:07 ` Brandon Casey
  0 siblings, 2 replies; 16+ messages in thread
From: Jeff King @ 2009-11-30  7:52 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Sverre Rabbelier, git

Without this, test-lib checks that the git_remote_helpers
directory has been built. However, if we are building
without python, we will not have done anything at all in
that directory, and test-lib's sanity check will fail.

Signed-off-by: Jeff King <peff@peff.net>
---
On top of sr/vcs-helper.

This feels a little funny for NO_PYTHON to mean "no remote helpers at
all". But that is the way the Makefile is set up, since we seem to have
only python helpers.

 Makefile      |    1 +
 t/test-lib.sh |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 42744a4..443565e 100644
--- a/Makefile
+++ b/Makefile
@@ -1743,6 +1743,7 @@ GIT-BUILD-OPTIONS: .FORCE-GIT-BUILD-OPTIONS
 	@echo TAR=\''$(subst ','\'',$(subst ','\'',$(TAR)))'\' >>$@
 	@echo NO_CURL=\''$(subst ','\'',$(subst ','\'',$(NO_CURL)))'\' >>$@
 	@echo NO_PERL=\''$(subst ','\'',$(subst ','\'',$(NO_PERL)))'\' >>$@
+	@echo NO_PYTHON=\''$(subst ','\'',$(subst ','\'',$(NO_PYTHON)))'\' >>$@
 
 ### Detect Tck/Tk interpreter path changes
 ifndef NO_TCLTK
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 4a40520..ca0839c 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -638,7 +638,7 @@ test -d ../templates/blt || {
 	error "You haven't built things yet, have you?"
 }
 
-if test -z "$GIT_TEST_INSTALLED"
+if test -z "$GIT_TEST_INSTALLED" && test -z "$NO_PYTHON"
 then
 	GITPYTHONLIB="$(pwd)/../git_remote_helpers/build/lib"
 	export GITPYTHONLIB
-- 
1.6.6.rc0.327.gd49b

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-11-30 22:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30  7:52 [PATCH] tests: handle NO_PYTHON setting Jeff King
2009-11-30  7:55 ` Sverre Rabbelier
2009-11-30  7:59   ` Jeff King
2009-11-30  8:04     ` Sverre Rabbelier
2009-11-30  8:05       ` Jeff King
2009-11-30  8:28       ` Junio C Hamano
2009-11-30  8:35         ` Sverre Rabbelier
2009-11-30  8:49           ` Junio C Hamano
2009-11-30  9:56             ` Sverre Rabbelier
2009-11-30 10:59               ` Johan Herland
2009-11-30 17:27                 ` Junio C Hamano
2009-11-30 18:01                   ` Johan Herland
2009-11-30 18:07 ` Brandon Casey
2009-11-30 20:54   ` Jeff King
2009-11-30 21:17     ` Brandon Casey
2009-11-30 22:31       ` Johan Herland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).