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 C41C2158041 for ; Thu, 22 Feb 2024 10:45:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC539E2A4F; Thu, 22 Feb 2024 10:44:44 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7E449E2A4C for ; Thu, 22 Feb 2024 10:44:44 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 2/2] dev-python/reflink: Use PROPERTIES=test_privileged Date: Thu, 22 Feb 2024 11:44:10 +0100 Message-ID: <20240222104438.200565-2-mgorny@gentoo.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240222104438.200565-1-mgorny@gentoo.org> References: <20240222104438.200565-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 3f3a329d-a1bf-486a-a51b-569e84cdfde4 X-Archives-Hash: e3689782a4f86a271bc8bfe7bac7c55e Signed-off-by: Michał Górny --- dev-python/reflink/reflink-0.2.2.ebuild | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dev-python/reflink/reflink-0.2.2.ebuild b/dev-python/reflink/reflink-0.2.2.ebuild index 83e0653fe4a1..7c9681db2505 100644 --- a/dev-python/reflink/reflink-0.2.2.ebuild +++ b/dev-python/reflink/reflink-0.2.2.ebuild @@ -18,6 +18,8 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~ppc64 ~x86" +PROPERTIES="test_privileged" +RESTRICT="test" RDEPEND=" $(python_gen_cond_dep ' @@ -41,15 +43,13 @@ src_prepare() { } src_test() { - rm -rf reflink || die - - if [[ ${EUID} != 0 ]]; then - ewarn "Tests require root permissions (FEATURES=-userpriv)" - elif [[ ! -c /dev/loop-control ]]; then + if [[ ! -c /dev/loop-control ]]; then die "Tests require /dev/loop-control" - else - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - addwrite /dev - distutils-r1_src_test fi + + rm -rf reflink || die + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + addwrite /dev + distutils-r1_src_test } -- 2.43.2