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 D3C77138350 for ; Fri, 3 Apr 2020 10:30:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2570E0B9E; Fri, 3 Apr 2020 10:29:59 +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 9B6FFE0B9E for ; Fri, 3 Apr 2020 10:29:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 7B53134EC6F for ; Fri, 3 Apr 2020 10:29:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DDAD5154 for ; Fri, 3 Apr 2020 10:29:56 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1585909787.0e4e63d376cff52fa014a53c39a09dd205250f96.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-subtests/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild X-VCS-Directories: dev-python/pytest-subtests/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 0e4e63d376cff52fa014a53c39a09dd205250f96 X-VCS-Branch: dev Date: Fri, 3 Apr 2020 10:29:56 +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: 448e21f7-7edd-4023-a6ba-c247831414f6 X-Archives-Hash: 3d0d077be93d2e6c2552c2a2db25c624 commit: 0e4e63d376cff52fa014a53c39a09dd205250f96 Author: Andrew Ammerlaan riseup net> AuthorDate: Fri Apr 3 10:29:47 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Fri Apr 3 10:29:47 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0e4e63d3 dev-python/pytest-subtests: fix tests if pakcage ... is not already installed Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild b/dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild index 06cf27f..3e44500 100644 --- a/dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild +++ b/dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild @@ -32,3 +32,10 @@ python_prepare_all() { distutils-r1_python_prepare_all } + +python_test() { + # tests fail if package is not installed + # workaround is to add source to PYTHONPATH + PYTHONPATH="${S}" + pytest -vv || die +}