From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-dev] [PATCH 2/2] dev-python/reflink: Use PROPERTIES=test_privileged
Date: Thu, 22 Feb 2024 11:44:10 +0100 [thread overview]
Message-ID: <20240222104438.200565-2-mgorny@gentoo.org> (raw)
In-Reply-To: <20240222104438.200565-1-mgorny@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
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
prev parent reply other threads:[~2024-02-22 10:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-22 10:44 [gentoo-dev] [PATCH 1/2] metadata/layout.conf: Recognize PROPERTIES=test_privileged Michał Górny
2024-02-22 10:44 ` Michał Górny [this message]
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=20240222104438.200565-2-mgorny@gentoo.org \
--to=mgorny@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