summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-04-12 01:10:31 -0400
committerMike Gilbert <floppym@gentoo.org>2020-04-12 01:12:14 -0400
commitbf97459c60fe40619001cf96927752f60af189e8 (patch)
tree06edc8d6c8968164ade977f6c0814964546635de
parentmedia-sound/qsynth: removed old 0.6.0 (diff)
downloadgentoo-bf97459c60fe40619001cf96927752f60af189e8.tar.gz
gentoo-bf97459c60fe40619001cf96927752f60af189e8.tar.bz2
gentoo-bf97459c60fe40619001cf96927752f60af189e8.zip
sys-fs/fuse: fix tests
Package-Manager: Portage-2.3.96_p4, Repoman-2.3.22_p1 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--sys-fs/fuse/fuse-3.9.1.ebuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/sys-fs/fuse/fuse-3.9.1.ebuild b/sys-fs/fuse/fuse-3.9.1.ebuild
index f55f83cd9b7..a858b29b4ec 100644
--- a/sys-fs/fuse/fuse-3.9.1.ebuild
+++ b/sys-fs/fuse/fuse-3.9.1.ebuild
@@ -30,7 +30,7 @@ python_check_deps() {
}
pkg_setup() {
- use test && python-any-r1_pkg_setup
+ use test && python_setup
}
src_prepare() {
@@ -38,13 +38,11 @@ src_prepare() {
# lto not supported yet -- https://github.com/libfuse/libfuse/issues/198
filter-flags '-flto*'
-
- # passthough_ll is broken on systems with 32-bit pointers
- cat /dev/null > example/meson.build || die
}
multilib_src_configure() {
local emesonargs=(
+ -Dexamples=$(usex test true false)
-Duseroot=false
-Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
)
@@ -55,6 +53,16 @@ multilib_src_compile() {
eninja
}
+src_test() {
+ if [[ ${EUID} != 0 ]]; then
+ ewarn "Running as non-root user, skipping tests"
+ elif has sandbox ${FEATURES}; then
+ ewarn "Sandbox enabled, skipping tests"
+ else
+ multilib-minimal_src_test
+ fi
+}
+
multilib_src_test() {
${EPYTHON} -m pytest test || die
}