commit: efe2ef773c05f4e2fb3fb5fbf4d069938de12489
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 14 02:39:07 2024 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Apr 14 02:47:43 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efe2ef77
sys-fs/fuse: restrict tests unconditionally
Also add some notes.
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
sys-fs/fuse/fuse-3.16.2.ebuild | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/sys-fs/fuse/fuse-3.16.2.ebuild b/sys-fs/fuse/fuse-3.16.2.ebuild
index 8b2bebb691b8..2997ce0cf204 100644
--- a/sys-fs/fuse/fuse-3.16.2.ebuild
+++ b/sys-fs/fuse/fuse-3.16.2.ebuild
@@ -14,7 +14,7 @@ LICENSE="GPL-2 LGPL-2.1"
SLOT="3"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64
~riscv ~s390 sparc x86"
IUSE="+suid test"
-RESTRICT="!test? ( test )"
+RESTRICT="test"
PROPERTIES="test_privileged"
BDEPEND="
@@ -53,11 +53,13 @@ multilib_src_configure() {
}
src_test() {
- (
- addwrite /dev/cuse
- addwrite /dev/fuse
- multilib-minimal_src_test
- ) || die
+ # For tests to pass:
+ # sandbox must be disabled.
+ # Write access to /dev/cuse* and /dev/fuse is required.
+ # root must be a member of the portage group; CAP_DAC_OVERRIDE is
dropped.
+ # TMPDIR must be short for unix socket paths.
+ local -x TMPDIR=/tmp
+ multilib-minimal_src_test
}
multilib_src_test() {