]> arthur.barton.de Git - bup.git/blobdiff - t/test-command-without-init-fails.sh
Remove all of the remaining test-related "set -e" usage.
[bup.git] / t / test-command-without-init-fails.sh
index 896fc1f8b219241312ed4a7ca402fe309a9a95d4..3c5a0cd050c7545b9aed7fc638e9d12550941815 100755 (executable)
@@ -1,22 +1,19 @@
 #!/usr/bin/env bash
 . ./wvtest-bup.sh
 
-set -e -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"