]> arthur.barton.de Git - bup.git/blobdiff - t/test-fuse.sh
Skip dependent tests if we can't load loop or fuse
[bup.git] / t / test-fuse.sh
index cd3043707b662a8b2f03c33fc16238b550c9e372..3e2b3b288752e2f4e1c46ec05634ae2c63887d63 100755 (executable)
@@ -3,6 +3,11 @@
 
 set -o pipefail
 
+if test -n "$(type -p modprobe)" && ! modprobe fuse; then
+    echo 'Unable to load fuse module; skipping dependent tests.' 1>&2
+    exit 0
+fi
+
 if ! fusermount -V; then
     echo 'skipping FUSE tests: fusermount does not appear to work'
     exit 0