From f6eff0f1e0beccce3812671038a1b975b7d5fae2 Mon Sep 17 00:00:00 2001
From: Yaroslav Halchenko <debian@onerussian.com>
Date: Thu, 7 Oct 2010 18:01:18 -0400
Subject: [PATCH] debian/rules -- tests -- run in the same environment to
 preserve set PYTHONPATH

---
 debian/rules | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 34881f5cc3..7b321d686d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -34,10 +34,10 @@ python-install%:
 python-test%: python-install%
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	: # Run unittests here against installed scikits.learn
-	export PYTHONPATH=`/bin/ls -d $$PWD/$(PACKAGE_ROOT_DIR)/usr/lib/python$*/*/`
-	export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build
-	cd build/; python$* /usr/bin/nosetests -s scikits.learn
-	cd build/; python$* /usr/bin/nosetests --doctest-extension=rst ../doc/
+	export PYTHONPATH=`/bin/ls -d $$PWD/$(PACKAGE_ROOT_DIR)/usr/lib/python$*/*/`; \
+	export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
+	cd build/; python$* /usr/bin/nosetests -s scikits.learn; \
+			   python$* /usr/bin/nosetests --doctest-extension=rst ../doc/
 else
 	: # Skip unittests due to nocheck
 endif
-- 
GitLab