]> 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)
committerEvan Hunt <each@isc.org>
Tue, 27 Feb 2018 18:04:29 +0000 (10:04 -0800)
This ensures testsummary.sh is consistent with other scripts belonging
to the test framework.

(cherry picked from commit 642e20db8a083cb9ce0e736d217b63fae599b7f0)

bin/tests/system/testsummary.sh

index c75cc0905102390089093fb36b99a90b59d5c2cb..b89c51da2f37cd557b21cfb6318995497bed201a 100644 (file)
@@ -46,13 +46,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