>From 6caadc356f97f13e6d30c83b9b5fae0294e40a48 Mon Sep 17 00:00:00 2001
From: Yaroslav Halchenko <debian@onerussian.com>
Date: Fri, 14 Dec 2012 13:10:57 -0500
Subject: [PATCH 2/2] test/rules: fail if tests fail

---
 debian/changelog | 1 +
 debian/rules     | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2f5ca09..04a28ae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ python-numpy (1:1.7.0~b2-2) UNRELEASED; urgency=low
 
   * debian/rules
     - safe-guard all for loops with 'set -e; ' to prevent uncaught failures
+    - fail if tests fail
 
  -- Yaroslav Halchenko <debian@onerussian.com>  Fri, 14 Dec 2012 13:08:56 -0500
 
diff --git a/debian/rules b/debian/rules
index fc3d41c..2415af4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -178,14 +178,14 @@ override_dh_auto_install:
 	# source directory, so we need to mess with the import order so to
 	# select the code in the installation path
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-	-set -e; for v in $(PY2VERS) ; do \
+	set -e; for v in $(PY2VERS) ; do \
 		echo "-- running tests for "$$v" plain --" ; \
 		python$$v -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \
 		echo "-- running tests for "$$v" debug --" ; \
 		python$$v-dbg -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \
 	done
 	# Python 3.2 maps to python3/ dir alone? bah
-	-set -e; for v in $(PY3VERS) ; do \
+	set -e; for v in $(PY3VERS) ; do \
 		echo "-- running tests for "$$v" plain --" ; \
 		python$$v -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/') ; import numpy; numpy.test()" ; \
 		echo "-- running tests for "$$v" debug --" ; \
-- 
1.8.0

