]> arthur.barton.de Git - bup.git/commitdiff
test-fuse: skip tests if no fuse module
authorRob Browning <rlb@defaultvalue.org>
Sat, 9 Jul 2016 01:08:03 +0000 (20:08 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 9 Jul 2016 19:52:47 +0000 (14:52 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-fuse.sh

index 5949907b86c8c25c0969d06034a27ff62ac94b49..36ebfe54a6712ad3bb31a8c290243d363ca6abe5 100755 (executable)
@@ -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