X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Ftap.sh;h=1811f5dde48aacbf9ed9945d9a15eb8596d40ba9;hb=dc08462c5c1d2cb9ae52a7b1df98603cb1160262;hp=b82f203f5f7628cbdaca6d46d46974a2431ba826;hpb=139e10d38c5e0b6c65fad2a5d3e10450b0b714bb;p=zpackage diff --git a/t/tap.sh b/t/tap.sh index b82f203..1811f5d 100755 --- a/t/tap.sh +++ b/t/tap.sh @@ -7,7 +7,7 @@ tryrun() { note="$@" program=$1 shift - $program "$@" + $program "$@" >> test.out 2>&1 if [ $? -ne 0 ]; then printf 'not '; fi @@ -19,9 +19,11 @@ require() { note="$@" program=$1 shift - $program "$@" - if [ $? -ne 0 ]; then - printf "bail out! fail[$?]: $@\n" + $program "$@" >> test.out 2>&1 + rv=$? + if [ $rv -ne 0 ]; then + diag "bailing on $((tn + 1)) $program $*" + printf "bail out! fail[$rv]: $@\n" exit 255; fi tn=$((tn + 1))