From 29f05007acebed299b4bd854da083db6334446f7 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Fri, 8 Jul 2016 20:08:03 -0500 Subject: [PATCH] test-fuse: skip tests if no fuse module Signed-off-by: Rob Browning Tested-by: Rob Browning --- t/test-fuse.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/test-fuse.sh b/t/test-fuse.sh index 5949907..36ebfe5 100755 --- a/t/test-fuse.sh +++ b/t/test-fuse.sh @@ -6,6 +6,11 @@ set -o pipefail unset BLOCKSIZE BLOCK_SIZE DF_BLOCK_SIZE +if ! bup-python -c 'import fuse' 2> /dev/null; then + WVSTART 'unable to import fuse; skipping test' + exit 0 +fi + if test -n "$(type -p modprobe)" && ! modprobe fuse; then echo 'Unable to load fuse module; skipping dependent tests.' 1>&2 exit 0 -- 2.39.2