public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopencl/
Date: Fri, 26 Jun 2020 16:36:57 +0000 (UTC)	[thread overview]
Message-ID: <1593189359.14c8cc90697d632e0d67fb3c8c8781d31cd8fda1.marecki@gentoo> (raw)

commit:     14c8cc90697d632e0d67fb3c8c8781d31cd8fda1
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 26 16:31:10 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> 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 <marecki <AT> 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


             reply	other threads:[~2020-06-26 16:37 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-26 16:36 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-05  8:33 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopencl/ Michał Górny
2024-10-05  8:08 Arthur Zamarin
2024-08-09 17:19 Sam James
2024-07-10 11:39 Jakov Smolić
2024-02-18 13:23 Michał Górny
2024-02-18 11:43 Jakov Smolić
2024-02-01 21:21 Marek Szuba
2023-11-25  8:38 Sam James
2023-10-26  0:31 Marek Szuba
2023-09-26  4:44 Michał Górny
2023-09-25 19:26 Sam James
2023-08-20  2:30 Michał Górny
2023-08-19 20:15 Sam James
2023-08-19 16:24 Marek Szuba
2023-07-10 23:04 Marek Szuba
2023-06-27 12:05 Michał Górny
2023-06-27  6:55 Sam James
2023-05-21 11:25 Marek Szuba
2023-03-11  9:49 Michał Górny
2023-03-11  9:49 Michał Górny
2023-03-11  8:10 Arthur Zamarin
2023-02-01 23:08 Marek Szuba
2022-12-25 17:45 Michał Górny
2022-12-25 16:42 Sam James
2022-11-14 11:06 Marek Szuba
2022-11-14 11:06 Marek Szuba
2022-11-08  4:54 Jakov Smolić
2022-11-01 13:10 Marek Szuba
2022-10-25 20:28 Sam James
2022-09-22  1:33 Marek Szuba
2022-09-02 11:00 Marek Szuba
2022-09-02 11:00 Marek Szuba
2022-08-21  1:16 Marek Szuba
2022-07-27 23:37 Marek Szuba
2022-07-27 23:37 Marek Szuba
2022-07-27 23:37 Marek Szuba
2022-07-26  4:46 Sam James
2022-06-30  9:02 Marek Szuba
2022-06-29 15:52 Marek Szuba
2022-05-30 12:11 Marek Szuba
2022-03-28 10:14 Michał Górny
2022-03-28  6:51 Agostino Sarubbo
2022-02-21 15:40 Marek Szuba
2022-02-18  9:19 Michał Górny
2022-02-17 22:02 Jakov Smolić
2022-01-17 21:08 Marek Szuba
2022-01-01  0:23 Marek Szuba
2021-12-17 18:57 Michał Górny
2021-12-17 18:30 Jakov Smolić
2021-11-17 13:40 Marek Szuba
2021-08-16  6:13 Michał Górny
2021-07-13 13:11 Marek Szuba
2021-07-01 11:02 Marek Szuba
2021-06-25 10:14 Marek Szuba
2021-06-05 13:23 Marek Szuba
2021-05-25 12:31 Marek Szuba
2021-05-17 15:24 Marek Szuba
2021-05-17 14:50 Marek Szuba
2021-04-22 16:51 Marek Szuba
2021-04-18  7:05 Michał Górny
2021-04-18  1:44 Sam James
2021-03-15 12:49 Marek Szuba
2021-01-18 18:48 Michał Górny
2021-01-18 16:52 Sam James
2020-12-16 11:30 Michał Górny
2020-12-16 11:30 Michał Górny
2020-12-16 11:14 Sam James
2020-12-09 10:28 Marek Szuba
2020-09-21 20:09 Marek Szuba
2020-08-24 17:19 Marek Szuba
2020-07-29 11:33 Marek Szuba
2020-06-30 15:44 Marek Szuba
2020-06-29  6:19 Agostino Sarubbo
2020-06-26 17:35 Marek Szuba
2020-06-26 16:10 Marek Szuba
2020-05-17 13:47 Michał Górny
2020-05-17  7:50 Michał Górny
2020-03-20  9:58 David Seifert
2019-12-15 19:16 Michał Górny
2018-07-02  0:49 Thomas Deutschmann
2018-06-30 10:04 Pacho Ramos
2018-06-26 17:43 Pacho Ramos
2018-03-17 10:51 Michał Górny
2018-01-05 23:19 Michał Górny
2017-09-25 12:42 Michael Palimaka
2017-09-18 19:51 Patrick Lauer
2017-07-31 10:49 Tobias Klausmann
2017-07-12 19:00 Pacho Ramos
2017-05-02 11:58 Michał Górny
2016-06-13  9:12 Patrick Lauer
2016-02-10 16:15 Justin Lecher
2016-01-06  8:28 Patrick Lauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1593189359.14c8cc90697d632e0d67fb3c8c8781d31cd8fda1.marecki@gentoo \
    --to=marecki@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox