From: Nathan Wagner Date: Sun, 5 Mar 2017 15:01:04 +0000 (-0600) Subject: fix bug in tap exit with, add diag X-Git-Tag: v0.1.6~144 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=139e10d38c5e0b6c65fad2a5d3e10450b0b714bb fix bug in tap exit with, add diag --- diff --git a/t/tap.sh b/t/tap.sh index 59df961..b82f203 100755 --- a/t/tap.sh +++ b/t/tap.sh @@ -35,6 +35,10 @@ shownote() { fi } +diag() { + printf '# %s\n' "$@" +} + okexit() { exitwith 0 "$*" } @@ -56,7 +60,7 @@ exitwith() { note= if [ $rv -ne $1 ]; then printf 'not '; - note=$(printf '# got "%d" expected "%d"' "$1" "$2") + note=$(printf '# got "%d" expected "%d"' "$rv" "$1") fi shift tn=$((tn + 1))