summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pbr/pbr-1.8.0.ebuild')
-rw-r--r--dev-python/pbr/pbr-1.8.0.ebuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/dev-python/pbr/pbr-1.8.0.ebuild b/dev-python/pbr/pbr-1.8.0.ebuild
index f42181a4e6b1..6311750ecc2e 100644
--- a/dev-python/pbr/pbr-1.8.0.ebuild
+++ b/dev-python/pbr/pbr-1.8.0.ebuild
@@ -17,6 +17,7 @@ SLOT="0"
KEYWORDS="~amd64 ~hppa ~mips ~ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
+# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
@@ -33,12 +34,10 @@ DEPEND="
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
>=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
dev-python/virtualenv[${PYTHON_USEDEP}]
+ dev-vcs/git
)"
PDEPEND="dev-python/pip[${PYTHON_USEDEP}]"
-# Requ'd for testsuite
-DISTUTILS_IN_SOURCE_BUILD=1
-
# This normally actually belongs here.
python_prepare_all() {
# This test passes when run within the source and doesn't represent a failure, but rather
@@ -59,6 +58,10 @@ python_prepare_all() {
}
python_test() {
- # Note; Tests, that have been removed, pass once package is emerged.
- esetup.py testr
+ distutils_install_for_testing
+
+ rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
+
+ testr init || die "testr init failed under ${EPYTHON}"
+ testr run || die "testr run failed under ${EPYTHON}"
}