Set HOME=$(CURDIR) when running unit tests.

This commit is contained in:
Thomas Goirand
2016-03-31 23:14:42 +02:00
parent c5b823ee8e
commit a83bd5a30e
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@@ -2,6 +2,7 @@ python-fuelclient (9.0.0~0+2016.03.21.git.3130252902-1) experimental; urgency=me
* New upstream release based on commit sha256: 3130252902 from: 2016-03-21.
* Fixed (build-)depends for this releaes.
* Set HOME=$(CURDIR) when running unit tests.
-- Thomas Goirand <zigo@debian.org> Thu, 31 Mar 2016 21:37:45 +0200

2
debian/rules vendored
View File

@@ -35,7 +35,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 'fuelclient\.tests\.unit\.(?!.*common\.test_config\.TestSettings\.test_deprecated_option_produces_warning.*)' | tee $$TEMP_REZ | subunit2pyunit ; \
PYTHONPATH=$(CURDIR) HOME=$(CURDIR) PYTHON=python$$i testr-python$$PYMAJOR run --subunit 'fuelclient\.tests\.unit\.(?!.*common\.test_config\.TestSettings\.test_deprecated_option_produces_warning.*)' | tee $$TEMP_REZ | subunit2pyunit ; \
cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
rm -f $$TEMP_REZ ; \
testr-python$$PYMAJOR slowest ; \