]> arthur.barton.de Git - bup.git/blobdiff - t/test-xdev.sh
Detect root-status failures
[bup.git] / t / test-xdev.sh
index 424692aa461b8571ca8cab2248e229b4d2580e0c..66dc81e611579d37ad2fccd12ec169c03e46b119 100755 (executable)
@@ -3,7 +3,9 @@
 
 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