[Python-modules-commits] [python-tornado] 03/03: Run Py3 unit tests during build and enable verbose mode

Ondřej Nový onovy-guest at moszumanska.debian.org
Mon Jun 6 11:10:16 UTC 2016


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

onovy-guest pushed a commit to branch master
in repository python-tornado.

commit 4a98d2daf423014bd9478ae3363974e94565c762
Author: Ondřej Nový <novy at ondrej.org>
Date:   Mon Jun 6 13:08:32 2016 +0200

    Run Py3 unit tests during build and enable verbose mode
---
 debian/changelog     | 1 +
 debian/rules         | 6 +++---
 debian/tests/python2 | 2 +-
 debian/tests/python3 | 2 +-
 4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9f4ffea..dd4734e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ python-tornado (4.3.0-3) UNRELEASED; urgency=medium
   * d/copyright: Added myself to Debian part
   * Package description changed to upstream (newer) version
   * Rearranged Debian tests Depends to Build-Depends
+  * Run Py3 unit tests during build and enable verbose mode
 
  -- Ondřej Nový <novy at ondrej.org>  Mon, 06 Jun 2016 09:30:16 +0200
 
diff --git a/debian/rules b/debian/rules
index 9b71426..7d12e43 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,9 @@
 
 export DH_VERBOSE=1
 export PYBUILD_NAME=tornado
-export PYBUILD_TEST_ARGS_python2={interpreter} ./tornado/test/runtests.py
-# python3 tests are covered in autopkgtest only for now
-export PYBUILD_TEST_ARGS_python3=echo skipping python3 tests for now
+export PYBUILD_TEST_ARGS={interpreter} ./tornado/test/runtests.py --verbose
+# py3 tests is failling without this
+export HOME=/tmp
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
diff --git a/debian/tests/python2 b/debian/tests/python2
index 7d2a877..df31059 100755
--- a/debian/tests/python2
+++ b/debian/tests/python2
@@ -7,5 +7,5 @@ cd "$ADTTMP"
 
 for py in $PYS; do
     echo "=== $py ==="
-    $py /usr/lib/$py/dist-packages/tornado/test/runtests.py 2>&1
+    $py /usr/lib/$py/dist-packages/tornado/test/runtests.py --verbose 2>&1
 done
diff --git a/debian/tests/python3 b/debian/tests/python3
index d52c9a5..4c11529 100755
--- a/debian/tests/python3
+++ b/debian/tests/python3
@@ -9,5 +9,5 @@ export HOME=$ADTTMP
 
 for py in $PYS; do
     echo "=== $py ==="
-    $py /usr/lib/python3/dist-packages/tornado/test/runtests.py 2>&1
+    $py /usr/lib/python3/dist-packages/tornado/test/runtests.py --verbose 2>&1
 done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-tornado.git



More information about the Python-modules-commits mailing list