From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CD987138359 for ; Wed, 18 Nov 2020 21:35:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DBAAFE09B1; Wed, 18 Nov 2020 21:35:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD88CE09B1 for ; Wed, 18 Nov 2020 21:35:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 274F7340E78 for ; Wed, 18 Nov 2020 21:35:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 50D43434 for ; Wed, 18 Nov 2020 21:35:50 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1605735344.bf8a23888c935ac7ca633f7d586b60ea5670f530.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-xvfb/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild X-VCS-Directories: dev-python/pytest-xvfb/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: bf8a23888c935ac7ca633f7d586b60ea5670f530 X-VCS-Branch: master Date: Wed, 18 Nov 2020 21:35:50 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7d889545-b2dc-4af9-acac-5e52d867918b X-Archives-Hash: c7204cdf145603fb95d5e4db34079800 commit: bf8a23888c935ac7ca633f7d586b60ea5670f530 Author: Andrew Ammerlaan riseup net> AuthorDate: Fri Nov 13 17:00:59 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Wed Nov 18 21:35:44 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf8a2388 dev-python/pytest-xvfb: fix tests tests do not work at all if the package is not already installed to the system Closes: https://bugs.gentoo.org/754270 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan riseup.net> Closes: https://github.com/gentoo/gentoo/pull/18246 Signed-off-by: Thomas Deutschmann gentoo.org> dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild b/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild index af48d69b605..ccf3315e933 100644 --- a/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild +++ b/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild @@ -24,6 +24,10 @@ DEPEND=" distutils_enable_tests pytest python_test() { - distutils_install_for_testing - pytest -vv || die "Tests failed with ${EPYTHON}" + local -x PYTHONPATH="${BUILD_DIR}/install/lib" + esetup.py install \ + --root="${BUILD_DIR}/install" \ + --install-lib=lib + + pytest -vv || die "Tests fail with ${EPYTHON}" }