]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use echoinfo for printing test summary
authorMichał Kępień <michal@isc.org>
Tue, 27 Feb 2018 08:46:22 +0000 (09:46 +0100)
committerMichał Kępień <michal@isc.org>
Tue, 27 Feb 2018 08:47:59 +0000 (09:47 +0100)
This ensures testsummary.sh is consistent with other scripts belonging
to the test framework.

bin/tests/system/testsummary.sh

index 2a328daa52295955a8f3d36bd0b21b70d503bbb3..9d6c2f3939126eff3a703f752cd81d48f5984150 100644 (file)
@@ -41,13 +41,13 @@ if [ $keepfile -eq 0 ]; then
 fi
 
 status=0
-echo "I:System test result summary:"
-grep 'R:[a-z0-9_-][a-z0-9_-]*:[A-Z][A-Z]*' systests.output | cut -d':' -f3 | sort | uniq -c | sed -e 's/^/I:/'
+echoinfo "I:System test result summary:"
+echoinfo "`grep 'R:[a-z0-9_-][a-z0-9_-]*:[A-Z][A-Z]*' systests.output | cut -d':' -f3 | sort | uniq -c | sed -e 's/^/I:/'`"
 
 FAILED_TESTS=`grep 'R:[a-z0-9_-][a-z0-9_-]*:FAIL' systests.output | cut -d':' -f2 | sort | sed -e 's/^/I:      /'`
 if [ -n "${FAILED_TESTS}" ]; then
-       echo "I:The following system tests failed:"
-       echo "${FAILED_TESTS}"
+       echoinfo "I:The following system tests failed:"
+       echoinfo "${FAILED_TESTS}"
        status=1
 fi