X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=t%2Ftest-fuse.sh;h=4603e80f79e3b3a57a3073c440fd38d41302ed94;hb=2b27df29f67103f333f52a0888f89f589c5f135f;hp=36ebfe54a6712ad3bb31a8c290243d363ca6abe5;hpb=29f05007acebed299b4bd854da083db6334446f7;p=bup.git diff --git a/t/test-fuse.sh b/t/test-fuse.sh index 36ebfe5..4603e80 100755 --- a/t/test-fuse.sh +++ b/t/test-fuse.sh @@ -6,6 +6,8 @@ set -o pipefail unset BLOCKSIZE BLOCK_SIZE DF_BLOCK_SIZE +root_status="$(t/root-status)" || exit $? + if ! bup-python -c 'import fuse' 2> /dev/null; then WVSTART 'unable to import fuse; skipping test' exit 0 @@ -21,7 +23,7 @@ if ! fusermount -V; then exit 0 fi -if ! groups | grep -q fuse && test "$(t/root-status)" != root; then +if ! groups | grep -q fuse && test "$root_status" != root; then echo 'skipping FUSE tests: you are not root and not in the fuse group' exit 0 fi