[python-mpop] 01/02: Run unittests via setup.py

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Mon Feb 15 21:13:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

a_valentino-guest pushed a commit to branch master
in repository python-mpop.

commit 08ba748a3d0c660e39c6e0352cf247d73509e1f8
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Mon Feb 15 20:43:12 2016 +0000

    Run unittests via setup.py
---
 debian/rules         | 3 +--
 debian/tests/python2 | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index da7cc8d..3e27d01 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,8 +21,7 @@ override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	set -e -x; \
 	for py in $(PY2VERS); do \
-		env PYTHONPATH=. PPP_CONFIG_DIR=debian/etc/mpop python$$py -m unittest discover mpop; \
-		env PYTHONPATH=. PPP_CONFIG_DIR=debian/etc/mpop python$$py -m unittest discover test; \
+		env PYTHONPATH=. PPP_CONFIG_DIR=debian/etc/mpop python$$py setup.py test; \
 	done
 endif
 
diff --git a/debian/tests/python2 b/debian/tests/python2
index dd269c8..eb8385f 100755
--- a/debian/tests/python2
+++ b/debian/tests/python2
@@ -8,5 +8,5 @@ cd "$ADTTMP"
 
 for py in $PYS; do
     echo "=== $py ==="
-    $py -m unittest discover -v mpop 2>&1
+    $py -m unittest -v mpop.tests.suite 2>&1
 done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-mpop.git



More information about the Pkg-grass-devel mailing list