public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/reflink/
Date: Sat, 24 Feb 2024 10:26:16 +0000 (UTC)	[thread overview]
Message-ID: <1708770373.59b8e694310508dda05cbf7fd3677b140bd2a0f7.mgorny@gentoo> (raw)

commit:     59b8e694310508dda05cbf7fd3677b140bd2a0f7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 22 10:43:23 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 24 10:26:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59b8e694

dev-python/reflink: Use PROPERTIES=test_privileged

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/reflink/reflink-0.2.2.ebuild | 19 ++++++++++---------
 1 file changed, 10 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..df133fc37b1f 100644
--- a/dev-python/reflink/reflink-0.2.2.ebuild
+++ b/dev-python/reflink/reflink-0.2.2.ebuild
@@ -18,6 +18,9 @@ HOMEPAGE="
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc64 ~x86"
+# The test suite mounts a btrfs volume on a loopback device.
+PROPERTIES="test_privileged"
+RESTRICT="test"
 
 RDEPEND="
 	$(python_gen_cond_dep '
@@ -41,15 +44,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
 }


             reply	other threads:[~2024-02-24 10:26 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-24 10:26 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-27 18:57 [gentoo-commits] repo/gentoo:master commit in: dev-python/reflink/ Michał Górny
2024-03-13 15:13 Michał Górny
2024-03-13 15:05 Arthur Zamarin
2024-02-14 17:25 Michał Górny
2024-02-14 17:25 Michał Górny
2023-06-11  9:21 Michał Górny
2023-03-16  4:07 Michał Górny
2022-11-04 18:23 Arthur Zamarin
2022-06-26 10:57 Georgy Yakovlev
2022-06-22 13:22 Agostino Sarubbo
2022-06-21  5:35 Sam James
2022-06-16  8:09 Michał Górny
2022-05-29 18:38 Arthur Zamarin
2022-05-29 18:38 Arthur Zamarin
2022-02-13 22:59 Jakov Smolić
2021-04-18  0:36 Georgy Yakovlev
2020-06-09  3:20 Georgy Yakovlev
2020-02-21  8:55 Georgy Yakovlev
2019-01-27 23:29 Georgy Yakovlev

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=1708770373.59b8e694310508dda05cbf7fd3677b140bd2a0f7.mgorny@gentoo \
    --to=mgorny@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