Also run the tests for all pyversions (Python 2.7 only)
authorDidier Raboud <odyx@debian.org>
Fri, 25 Nov 2016 14:43:14 +0000 (15:43 +0100)
committerDidier Raboud <odyx@debian.org>
Fri, 25 Nov 2016 14:43:14 +0000 (15:43 +0100)
debian/rules

index 7e803de2a79026a6e83a9c57707e3fa9984334c7..690f84ccd33a0a6afcd55c8f2f79d8615bd810c0 100755 (executable)
@@ -2,6 +2,7 @@
 
 derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no")
 
+PY2VERSIONS=$(shell [ -x /usr/bin/pyversions ] && pyversions -vr)
 PY3VERSIONS=$(shell [ -x /usr/bin/py3versions ] && py3versions -vr)
 
 %:
@@ -52,7 +53,7 @@ override_dh_clean:
 ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 override_dh_auto_test:
 else
-override_dh_auto_test: $(PY3VERSIONS:%=test-python%)
+override_dh_auto_test: $(PY3VERSIONS:%=test-python%) $(PY2VERSIONS:%=test-python%)
 endif
 
 test-python%: