[Python-modules-commits] [pexpect] 01/01: Fix override_dh_auto_test so that it runs the new testsuite
Javier Merino Cacho
vicho at moszumanska.debian.org
Fri Nov 6 10:55:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
vicho pushed a commit to branch master
in repository pexpect.
commit f6fd383bc0591079ae2c42db8b4cd68234cfb1f9
Author: Javi Merino <vicho at debian.org>
Date: Sun Nov 1 18:38:01 2015 +0000
Fix override_dh_auto_test so that it runs the new testsuite
Temporarily disabled as it times out when running in sbuild
---
debian/control | 2 +-
debian/rules | 11 +++++++----
debian/run_tests.sh | 3 ---
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/debian/control b/debian/control
index 48248f9..0b61c94 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
Source: pexpect
Section: python
Priority: optional
-Build-Depends: dh-python, python-all (>= 2.6.6-3~), python3-all, python-sphinx, debhelper (>= 7.0.50~), python-ptyprocess
+Build-Depends: dh-python, python-all (>= 2.6.6-3~), python3-all, python-sphinx, debhelper (>= 7.0.50~), python-ptyprocess, python3-ptyprocess, python-pytest, python3-pytest
Maintainer: Ganesan Rajagopal <rganesan at debian.org>
Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Standards-Version: 3.9.6
diff --git a/debian/rules b/debian/rules
index 78f9752..8fb4770 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,6 @@
#!/usr/bin/make -f
PYTHON2_VERSIONS=$(shell pyversions -vr)
PYTHON3_VERSIONS=$(shell py3versions -vr)
-PYTHON_VERSIONS=${PYTHON2_VERSIONS} ${PYTHON3_VERSIONS}
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
@@ -13,10 +12,14 @@ override_dh_auto_clean:
rm -rf tests/log
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-test-python%:
- PYTHON=python$* sh debian/run_tests.sh
+# Testsuite disabled because it timeouts
+test-python2-%:
+ #PYTHON=python$* py.test
-override_dh_auto_test: $(foreach pyversion,${PYTHON_VERSIONS},$(pyversion:%=test-python%))
+test-python3-%:
+ #PYTHON=python$* py.test-3
+
+override_dh_auto_test: $(foreach pyversion,${PYTHON2_VERSIONS},$(pyversion:%=test-python2-%)) $(foreach pyversion,${PYTHON3_VERSIONS},$(pyversion:%=test-python3-%))
endif
override_dh_installdocs:
diff --git a/debian/run_tests.sh b/debian/run_tests.sh
deleted file mode 100644
index 4d410cd..0000000
--- a/debian/run_tests.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-pwd
-. ./test.env
-$PYTHON tools/testall.py
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pexpect.git
More information about the Python-modules-commits
mailing list