aboutsummaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-12-16 17:56:31 -0600
committerRob Landley <rob@landley.net>2007-12-16 17:56:31 -0600
commit273f278fa83715c251e8422489279f91566b856b (patch)
treefabd9057302745d5a7ac81fad2f5dd75d29b6c15 /scripts/test
parent8b479b4fd22c13fcf3fd89f8be083180aac87ae7 (diff)
downloadtoybox-273f278fa83715c251e8422489279f91566b856b.tar.gz
Tweak testing.sh so VERBOSE=1 is less noisy.
Diffstat (limited to 'scripts/test')
-rw-r--r--scripts/test/testing.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/test/testing.sh b/scripts/test/testing.sh
index 1531193c..a9bc6725 100644
--- a/scripts/test/testing.sh
+++ b/scripts/test/testing.sh
@@ -69,7 +69,6 @@ testing ()
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 @@ testing ()
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