]> arthur.barton.de Git - bup.git/commitdiff
test-xdev: show test skip messages via WVSTART
authorRob Browning <rlb@defaultvalue.org>
Sat, 25 Apr 2015 15:13:14 +0000 (10:13 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 25 Apr 2015 15:24:28 +0000 (10:24 -0500)
Otherwise they're invisible via "make check", etc.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-xdev.sh

index 15bdd7acb748094f6ce948691b28b3b65a65cc78..8c0cdb16aa2938547d29c2f68e3ec9bd594c8a7e 100755 (executable)
@@ -4,19 +4,19 @@
 set -o pipefail
 
 if [ $(t/root-status) != root ]; then
-    echo 'Not root: skipping xdev tests.'
+    WVSTART 'not root: skipping tests'
     exit 0 # FIXME: add WVSKIP.
 fi
 
 if ! modprobe loop; then
-    echo 'Unable to load loopback module; skipping dependent tests.' 1>&2
+    WVSTART 'unable to load loopback module; skipping tests' 1>&2
     exit 0
 fi
 
 # These tests are only likely to work under Linux for now
 # (patches welcome).
 if ! [[ $(uname) =~ Linux ]]; then
-    echo 'Not Linux: skipping xdev tests.'
+    WVSTART 'not Linux: skipping tests'
     exit 0 # FIXME: add WVSKIP.
 fi