set -ex -o pipefail
-if t/root-status != root; then
+if [ $(t/root-status) != root ]; then
echo 'Not root: skipping --check-device tests.'
exit 0 # FIXME: add WVSKIP.
fi
universal-cleanup()
{
- if t/root-status != root; then return 0; fi
+ if [ $(t/root-status) != root ]; then return 0; fi
cd "$TOP"
umount "$TOP/bupmeta.tmp/testfs" || true
umount "$TOP/bupmeta.tmp/testfs-limited" || true
# Test ownership restoration (when not root or fakeroot).
(
- if t/root-status != none; then
+ if [ $(t/root-status) != none ]; then
exit 0
fi
# Test ownership restoration (when root or fakeroot).
(
- if t/root-status == none; then
+ if [ $(t/root-status) == none ]; then
exit 0
fi
# Root-only tests that require an FS with all the trimmings: ACLs,
# Linux attr, Linux xattr, etc.
-if t/root-status == root; then
+if [ $(t/root-status) == root ]; then
(
set -e
# Some cleanup handled in universal-cleanup() above.