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
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
set -o pipefail
-if [ $(t/root-status) != root ]; then
+root_status="$(t/root-status)" || exit $?
+
+if [ "$root_status" != root ]; then
echo 'Not root: skipping --check-device tests.'
exit 0 # FIXME: add WVSKIP.
fi
. ./wvtest-bup.sh || exit $?
. t/lib.sh || exit $?
-if [ $(t/root-status) != root ]; then
+root_status="$(t/root-status)" || exit $?
+
+if [ "$root_status" != root ]; then
echo 'Not root: skipping restore --map-* tests.'
exit 0 # FIXME: add WVSKIP.
fi
set -o pipefail
-if [ $(t/root-status) != root ]; then
+root_status="$(t/root-status)" || exit $?
+
+if [ "$root_status" != root ]; then
WVSTART 'not root: skipping tests'
exit 0 # FIXME: add WVSKIP.
fi