Mercurial > hg > toybox
changeset 205:ea8149345b78
Tweak testing.sh so VERBOSE=1 is less noisy.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 16 Dec 2007 17:56:31 -0600 |
parents | 64b6941c2f51 |
children | a14921912ebc |
files | scripts/test/testing.sh |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/test/testing.sh Sun Dec 16 17:55:34 2007 -0600 +++ b/scripts/test/testing.sh Sun Dec 16 17:56:31 2007 -0600 @@ -69,7 +69,6 @@ echo -ne "$3" > expected echo -ne "$4" > input - [ -z "$VERBOSE" ] || echo "echo '$5' | $2" echo -ne "$5" | eval "$2" > actual RETVAL=$? @@ -78,7 +77,11 @@ then FAILCOUNT=$[$FAILCOUNT+1] echo "FAIL: $NAME" - [ -n "$VERBOSE" ] && diff -u expected actual + if [ -n "$VERBOSE" ] + then + echo "echo '$5' | $2" + diff -u expected actual + fi else echo "PASS: $NAME" fi