commit:     cc02ef6bfb9ac2be37076939a7f120c2bfb373ba
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  3 20:14:08 2021 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Wed Feb  3 20:17:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc02ef6b

sys-fs/unionfs-fuse: Skip tests when missing /dev/fuse

Closes: https://bugs.gentoo.org/729094
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
Package-Manager: Portage-3.0.14, Repoman-3.0.2

 sys-fs/unionfs-fuse/unionfs-fuse-2.1.ebuild  | 3 ++-
 sys-fs/unionfs-fuse/unionfs-fuse-9999.ebuild | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-fs/unionfs-fuse/unionfs-fuse-2.1.ebuild 
b/sys-fs/unionfs-fuse/unionfs-fuse-2.1.ebuild
index b9d37ded340..329020ca117 100644
--- a/sys-fs/unionfs-fuse/unionfs-fuse-2.1.ebuild
+++ b/sys-fs/unionfs-fuse/unionfs-fuse-2.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -41,6 +41,7 @@ src_install() {
 }
 
 src_test() {
+       [[ -e /dev/fuse ]] || return 0
        addwrite /dev/fuse
        pytest -vv || die "Tests fail with ${EPYTHON}"
 }

diff --git a/sys-fs/unionfs-fuse/unionfs-fuse-9999.ebuild 
b/sys-fs/unionfs-fuse/unionfs-fuse-9999.ebuild
index 61aad0ff62c..c5479601a11 100644
--- a/sys-fs/unionfs-fuse/unionfs-fuse-9999.ebuild
+++ b/sys-fs/unionfs-fuse/unionfs-fuse-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -41,6 +41,7 @@ src_install() {
 }
 
 src_test() {
+       [[ -e /dev/fuse ]] || return 0
        addwrite /dev/fuse
        pytest -vv || die "Tests fail with ${EPYTHON}"
 }

Reply via email to