From: Didier Raboud Date: Mon, 7 May 2012 17:12:27 +0000 (+0200) Subject: PyUT: Run tests with python3 too. X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~132^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2c29b0af9d52a91aca05eb431cc4796b630c91c;p=lsb.git 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. --- 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