]> arthur.barton.de Git - bup.git/blobdiff - t/test-command-without-init-fails.sh
vfs: limit root_items branches to refs/heads
[bup.git] / t / test-command-without-init-fails.sh
index 896fc1f8b219241312ed4a7ca402fe309a9a95d4..32efe2ca5db9a3e35624eca6090c945605d9e81b 100755 (executable)
@@ -1,22 +1,21 @@
 #!/usr/bin/env bash
-. ./wvtest-bup.sh
+. ./wvtest-bup.sh || exit $?
 
-set -e -o pipefail
+set -o pipefail
 
 WVSTART 'all'
 
-top="$(pwd)"
-tmpdir="$(wvmktempdir)"
+top="$(WVPASS pwd)" || exit $?
+tmpdir="$(WVPASS wvmktempdir)" || exit $?
+
 export BUP_DIR="$tmpdir/bup"
 
 bup() { "$top/bup" "$@"; }
 
-mkdir "$tmpdir/foo"
+WVPASS mkdir "$tmpdir/foo"
 
-set +e
 bup index "$tmpdir/foo" &> /dev/null
 index_rc=$?
-set -e
 WVPASSEQ "$index_rc" "15"
 
-rm -rf "$tmpdir"
+WVPASS rm -rf "$tmpdir"