X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Ftap.sh;h=1811f5dde48aacbf9ed9945d9a15eb8596d40ba9;hb=d3b90e6aa8ab580c77ead76ff5c6c6dca7991cc6;hp=b82f203f5f7628cbdaca6d46d46974a2431ba826;hpb=c4b62e2fc6674d790be58f841221de49bdb4d00a;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))