From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B9BBB1387B1 for ; Tue, 22 Sep 2015 06:38:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A485AE0839; Tue, 22 Sep 2015 06:38:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3D849E0839 for ; Tue, 22 Sep 2015 06:38:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4968A3408B8 for ; Tue, 22 Sep 2015 06:38:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91565183 for ; Tue, 22 Sep 2015 06:38:11 +0000 (UTC) From: "Matt Thode" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Thode" Message-ID: <1442903861.28c1721a745705f3ff2504fcc816afdd839d1c46.prometheanfire@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pbr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pbr/pbr-1.8.0.ebuild X-VCS-Directories: dev-python/pbr/ X-VCS-Committer: prometheanfire X-VCS-Committer-Name: Matt Thode X-VCS-Revision: 28c1721a745705f3ff2504fcc816afdd839d1c46 X-VCS-Branch: master Date: Tue, 22 Sep 2015 06:38:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c551be01-676e-4462-a19f-54ba1a14d51b X-Archives-Hash: 5a53be3a937c5eb4f3a153839df0ca81 commit: 28c1721a745705f3ff2504fcc816afdd839d1c46 Author: Matthew Thode gentoo org> AuthorDate: Tue Sep 22 06:37:41 2015 +0000 Commit: Matt Thode gentoo 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}" }