]> arthur.barton.de Git - bup.git/blobdiff - t/test-save-creates-no-unrefs.sh
test-web: mark as unresolved with respect to python 3
[bup.git] / t / test-save-creates-no-unrefs.sh
index 229da4cf2421d55a7ff3b6acea783165a6e49c47..38d9064a0af7d5ad5670e8649df0809aeb2ec225 100755 (executable)
@@ -1,24 +1,22 @@
 #!/usr/bin/env bash
-. ./wvtest-bup.sh
-
-set -eo pipefail
+. ./wvtest-bup.sh || exit $?
 
 WVSTART 'all'
 
-top="$(pwd)"
-tmpdir="$(wvmktempdir)"
+top="$(WVPASS pwd)" || exit $?
+tmpdir="$(WVPASS wvmktempdir)" || exit $?
 export BUP_DIR="$tmpdir/bup"
 export GIT_DIR="$BUP_DIR"
 
 bup() { "$top/bup" "$@"; }
 
-mkdir -p "$tmpdir/src"
-touch "$tmpdir/src/foo"
-bup init
-bup index "$tmpdir/src"
-bup save -n src "$tmpdir/src"
+WVPASS mkdir -p "$tmpdir/src"
+WVPASS touch "$tmpdir/src/foo"
+WVPASS bup init
+WVPASS bup index "$tmpdir/src"
+WVPASS bup save -n src "$tmpdir/src"
 WVPASSEQ "$(git fsck --unreachable)" ""
-bup save -n src "$tmpdir/src"
+WVPASS bup save -n src "$tmpdir/src"
 WVPASSEQ "$(git fsck --unreachable)" ""
 
-rm -rf "$tmpdir"
+WVPASS rm -rf "$tmpdir"