[Python-modules-commits] [python-smstrade] 09/17: Use override_dh_auto_test to pass --system=custom and run tests in {build_dir}

Jan Dittberner jandd at moszumanska.debian.org
Sat Jan 2 20:36:31 UTC 2016


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

jandd pushed a commit to branch master
in repository python-smstrade.

commit 8232ab8f90e822af62a63bc3d3e3b21313e01b72
Author: Jan Dittberner <jandd at debian.org>
Date:   Sat Jan 2 19:52:04 2016 +0100

    Use override_dh_auto_test to pass --system=custom and run tests in {build_dir}
---
 debian/changelog | 2 ++
 debian/rules     | 6 ++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index efa7b05..1eac4b7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ python-smstrade (0.2.4-4) UNRELEASED; urgency=medium
   * Move manpages to python3-smstrade
   * Use python3 scripts instead of python2 scripts
   * Add lintian overrides for the generated scripts
+  * Use dh_override_auto_test to pass --system=custom and run tests in
+    {build_dir}
 
  -- Jan Dittberner <jandd at debian.org>  Sat, 02 Jan 2016 19:16:27 +0100
 
diff --git a/debian/rules b/debian/rules
index 98a574b..5f2ad8b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,14 +4,16 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 export PYBUILD_NAME=smstrade
-export PYBUILD_TEST_ARGS_python2=unset http_proxy ; unset https_proxy ; cd {dir} ; py.test
-export PYBUILD_TEST_ARGS_python3=unset http_proxy ; unset https_proxy ; cd {dir} ; py.test-3
+export PYBUILD_TEST_ARGS=unset http_proxy ; unset https_proxy ; cd {build_dir} ; {interpreter} -m pytest
 # do not install scripts for Python 2 they are provided by the Python 3 package
 export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin
 
 override_dh_installchangelogs:
 	dh_installchangelogs -i ChangeLog.rst
 
+override_dh_auto_test:
+	dh_auto_test -- --system=custom
+
 %:
 	dh $@ --with=python2,python3 --buildsystem=pybuild
 

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



More information about the Python-modules-commits mailing list