From a2c29b0af9d52a91aca05eb431cc4796b630c91c Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Mon, 7 May 2012 19:12:27 +0200 Subject: [PATCH] PyUT: Run tests with python3 too. Note: This currently makes the build fail in a non-clean environment without py3versions available. This is semi-intended and is the easiest way to have the tests run as python3 too. --- debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 590258d..317f4d0 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,7 @@ derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no") PY2VERSIONS=$(shell pyversions -vr) +PY3VERSIONS=$(shell [ -x /usr/bin/py3versions ] && py3versions -vr) %: dh --with python2 $@ @@ -46,7 +47,7 @@ override_dh_clean: dh_clean rm -f *.py[co] -override_dh_auto_test: $(PY2VERSIONS:%=test-python%) +override_dh_auto_test: $(PY2VERSIONS:%=test-python%) $(PY3VERSIONS:%=test-python%) test-python%: PYTHONPATH=. python$* test/test_lsb_release.py -vv -- 2.30.2