Fixed tweak of $PATH when running tests (Closes: #806489).

This commit is contained in:
Thomas Goirand 2015-12-02 09:49:10 +01:00
parent c68e56af97
commit 87101b5e9c
2 changed files with 7 additions and 3 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
python-os-testr (0.2.0-4) unstable; urgency=medium
* Fixed tweak of $PATH when running tests (Closes: #806489).
-- Thomas Goirand <zigo@debian.org> Wed, 02 Dec 2015 09:48:32 +0100
python-os-testr (0.2.0-3) unstable; urgency=medium
* override_dh_python3 to fix Py3 shebang.

4
debian/rules vendored
View File

@ -8,8 +8,6 @@ UPSTREAM_GIT = git://github.com/openstack/os-testr.git
export OSLO_PACKAGE_VERSION=$(VERSION)
export PATH+=:$(CURDIR)/debian/bin
%:
dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
@ -46,7 +44,7 @@ ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
rm -rf .testrepository ; \
testr-python$$PYMAJOR init ; \
TEMP_REZ=`mktemp -t` ; \
PYTHONPATH=$(CURDIR) PYTHON=python$$i testr-python$$PYMAJOR run --subunit | tee $$TEMP_REZ | subunit2pyunit ; \
export PATH=$$PATH:$(CURDIR)/debian/bin ; PYTHONPATH=$(CURDIR) PYTHON=python$$i testr-python$$PYMAJOR run --subunit | tee $$TEMP_REZ | subunit2pyunit ; \
cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
rm -f $$TEMP_REZ ; \
testr-python$$PYMAJOR slowest ; \