X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=t%2Ftest-cat-file.sh;h=ec8610c905f00c5e589f27b9475bc1f0138cfcad;hb=bf67f94dd4f4096de4eee07a7dc377d6c889a016;hp=f0d7ebe30e4fce64a31d9201174ef5416e750256;hpb=5fdb455a2af008b5b504bbce98ad007c95c7e822;p=bup.git diff --git a/t/test-cat-file.sh b/t/test-cat-file.sh index f0d7ebe..ec8610c 100755 --- a/t/test-cat-file.sh +++ b/t/test-cat-file.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash -. ./wvtest-bup.sh +. ./wvtest-bup.sh || exit $? + +set -o pipefail top="$(WVPASS pwd)" || exit $? tmpdir="$(WVPASS wvmktempdir)" || exit $? @@ -34,7 +36,7 @@ src_hash=$(WVPASS bup ls -s "src/latest/$(pwd)" | cut -d' ' -f 1) || exit $? bupm_hash=$(WVPASS git ls-tree "$src_hash" | grep -F .bupm | cut -d' ' -f 3) \ || exit $? bupm_hash=$(WVPASS echo "$bupm_hash" | cut -d' ' -f 1) || exit $? -WVPASS git cat-file blob "$bupm_hash" > git-cat-bupm +WVPASS "$top/t/git-cat-tree" "$bupm_hash" > git-cat-bupm if ! cmp git-cat-bupm bup-cat-bupm; then cmp -l git-cat-bupm bup-cat-bupm diff -uN <(bup meta -tvvf git-cat-bupm) <(bup meta -tvvf bup-cat-bupm)