commit:     28c1721a745705f3ff2504fcc816afdd839d1c46
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 22 06:37:41 2015 +0000
Commit:     Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Tue Sep 22 06:37:41 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28c1721a

dev-python/pbr: adding git dep and changeing test scructure slightly

Package-Manager: portage-2.2.20.1

 dev-python/pbr/pbr-1.8.0.ebuild | 13 ++++++++-----
 1 file 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 f42181a..6311750 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}"
 }

Reply via email to