]> arthur.barton.de Git - bup.git/blobdiff - t/test-fuse.sh
Adjust sparse restore tests for test fs block size
[bup.git] / t / test-fuse.sh
index cd3043707b662a8b2f03c33fc16238b550c9e372..c19918284cc30d2e401b81d2348b5b00a95c9c41 100755 (executable)
@@ -3,6 +3,13 @@
 
 set -o pipefail
 
+unset BLOCKSIZE BLOCK_SIZE DF_BLOCK_SIZE
+
+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