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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E0B9D158089 for ; Wed, 18 Oct 2023 04:26:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE69D2BC03B; Wed, 18 Oct 2023 04:26:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CDFE42BC03E for ; Wed, 18 Oct 2023 04:26:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EBB6D335D1B for ; Wed, 18 Oct 2023 04:26:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57A381292 for ; Wed, 18 Oct 2023 04:26:14 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1697603161.6cc272a063014b32500e87c00f8d09f5a0eecce3.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/calibre/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/calibre/calibre-5.44.0-r2.ebuild X-VCS-Directories: app-text/calibre/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 6cc272a063014b32500e87c00f8d09f5a0eecce3 X-VCS-Branch: master Date: Wed, 18 Oct 2023 04:26:14 +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: 41faff81-7671-4690-9170-e4836d28bd51 X-Archives-Hash: 234f5b29bcc864954bdfd7f9c7fda007 commit: 6cc272a063014b32500e87c00f8d09f5a0eecce3 Author: Eli Schwartz gmail com> AuthorDate: Fri Oct 6 00:00:52 2023 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed Oct 18 04:26:01 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cc272a0 app-text/calibre: trivial refactor of skippable tests It is easier to add to as an array. Also add comment to note down that I don't know why a couple of tests are being skipped. Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Zac Medico gentoo.org> app-text/calibre/calibre-5.44.0-r2.ebuild | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/app-text/calibre/calibre-5.44.0-r2.ebuild b/app-text/calibre/calibre-5.44.0-r2.ebuild index 833cd49b4dc6..b90a58692d78 100644 --- a/app-text/calibre/calibre-5.44.0-r2.ebuild +++ b/app-text/calibre/calibre-5.44.0-r2.ebuild @@ -198,16 +198,20 @@ src_compile() { src_test() { # Skipped tests: - # - 7z (unpackaged Python dependency: py7zr) - # - test_unrar (unpackaged Python dependency: unrardll) - # # Note that we currently have a hack to skip one part of test_qt! # See PATCHES for more. - ${PYTHON} setup.py test \ - --exclude-test-name 7z \ - --exclude-test-name test_mem_leaks \ - --exclude-test-name test_searching \ - --exclude-test-name test_unrar || die + local _test_excludes=( + # unpackaged Python dependency: py7zr + 7z + # unpackaged Python dependency: unrardll + test_unrar + + # undocumented reasons + test_mem_leaks + test_searching + ) + + ${PYTHON} setup.py test "${_test_excludes[@]/#/--exclude-test-name=}" || die } src_install() {