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 D2EA61382C5 for ; Fri, 26 Jun 2020 16:37:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EAEF2E0978; Fri, 26 Jun 2020 16:37:00 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 09DB4E0978 for ; Fri, 26 Jun 2020 16:37:00 +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 BCB5334ED0F for ; Fri, 26 Jun 2020 16:36:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6ACFD256 for ; Fri, 26 Jun 2020 16:36:57 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1593189359.14c8cc90697d632e0d67fb3c8c8781d31cd8fda1.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopencl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyopencl/pyopencl-2019.1.2.ebuild X-VCS-Directories: dev-python/pyopencl/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 14c8cc90697d632e0d67fb3c8c8781d31cd8fda1 X-VCS-Branch: master Date: Fri, 26 Jun 2020 16:36:57 +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: 0394c83b-5261-40e2-b2d2-45d045ed48fb X-Archives-Hash: abfab459de81d32b9113996150d5b5f7 commit: 14c8cc90697d632e0d67fb3c8c8781d31cd8fda1 Author: Marek Szuba gentoo org> AuthorDate: Fri Jun 26 16:31:10 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Fri Jun 26 16:35:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14c8cc90 dev-python/pyopencl-2019.1.2: disable tests They fail if there are no OpenCL platforms available and even if there is one, they mostly get skipped unless the user 'portage' is granted additional permissions in order to be able to talk to the GPU (which I am pretty sure is a bad idea). Just don't bother. Closes: https://bugs.gentoo.org/729742 Signed-off-by: Marek Szuba gentoo.org> dev-python/pyopencl/pyopencl-2019.1.2.ebuild | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dev-python/pyopencl/pyopencl-2019.1.2.ebuild b/dev-python/pyopencl/pyopencl-2019.1.2.ebuild index 73b273d25bb..fbc6d6a6474 100644 --- a/dev-python/pyopencl/pyopencl-2019.1.2.ebuild +++ b/dev-python/pyopencl/pyopencl-2019.1.2.ebuild @@ -28,7 +28,13 @@ RDEPEND=" >=virtual/opencl-2" DEPEND="${RDEPEND}" -distutils_enable_tests pytest +# The test suite fails if there are no OpenCL platforms available, and +# even if there is one (which requires the presence of both an OpenCL +# runtime *and* hardware supported by it - simply emerging any runtime +# is not enough) the vast majority of tests end up skipped because by +# default the portage user hasn't got sufficient privileges to talk +# to the GPU. +RESTRICT="test" python_configure_all() { local myconf=() @@ -41,11 +47,6 @@ python_configure_all() { "${myconf[@]}" } -python_test() { - cd "${S}/test" || die - pytest -vv || die "Testsuite failed under ${EPYTHON}" -} - python_install_all() { if use examples; then dodoc -r examples