]> arthur.barton.de Git - bup.git/blobdiff - t/test-meta.sh
Set pipefail so that "x | y || exit $?" will work properly.
[bup.git] / t / test-meta.sh
index 879e108904fbb0923cd7c594f37b22ebaf8aaeb4..bb0cdefaa8ee744ccfd75577127aa23bcc9ce481 100755 (executable)
@@ -2,7 +2,9 @@
 . wvtest.sh
 . t/lib.sh
 
-TOP="$(pwd)"
+set -o pipefail
+
+TOP="$(WVPASS pwd)" || exit $?
 export BUP_DIR="$TOP/buptest.tmp"
 
 bup()