aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2015-07-29 17:14:49 +0100
committerSteve McIntyre <steve.mcintyre@linaro.org>2015-07-29 17:14:49 +0100
commit20ca8aed3061e54024ec8a0f309d77ca42b12c23 (patch)
tree26a74076040f3df40d1d4243b0b47198ab013fc9 /test
parente28b84f2f14792ea17eea66bbe2c486880a612b7 (diff)
Cosmetic tweaks to test output
Only write any runtime test output to terminal on VERBOSE > 0 Change-Id: Ib540a3ec9aec7526b5a704192f985afecc969060
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-common12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/test-common b/test/test-common
index 65e739b..cdc3a07 100755
--- a/test/test-common
+++ b/test/test-common
@@ -41,8 +41,10 @@ log () {
if [ "${LOGFILE}"x = ""x ] ; then
LOGFILE=$0.log
fi
- echo "${DATE}: $@" >&2 # Use stderr so we don't confuse anybody
- # reading our output
+ if [ $VERBOSE -gt 0 ] ; then
+ echo "${DATE}: $@" >&2 # Use stderr so we don't confuse
+ # anybody reading our output
+ fi
echo " ${DATE}: $@" >> ${LOGFILE}
}
@@ -157,8 +159,10 @@ list_test_steps () {
}
check_test_steps () {
+ echo "Running test $NAME"
+ echo "($DESCRIPTION)"
for STEP in $(list_test_steps); do
- echo "Checking connectivity results for ${STEP}: "
+ echo " Checking connectivity results for ${STEP}: "
check_test_step ${STEP}
done
}
@@ -217,7 +221,7 @@ check_test_step () {
}
}
}
- END { printf(\" success: %d, fail: %d\n\", success, fail) }
+ END { printf(\" success: %d, fail: %d\n\", success, fail) }
"
}