From: Michał Kępień Date: Thu, 22 Feb 2018 13:50:02 +0000 (+0100) Subject: Make testsummary.sh print a list of failed system tests X-Git-Tag: v9.11.4rc1~97^2~2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=da0c3634854c230c82312be556a024c8c483190d;p=thirdparty%2Fbind9.git Make testsummary.sh print a list of failed system tests Print a list of failed system tests, if any, below the system test summary to avoid the need to manually search through the test log. (cherry picked from commit 28068857e75482848b67f3d06cb5f336d4cfd9d0) --- diff --git a/bin/tests/system/testsummary.sh b/bin/tests/system/testsummary.sh index f5662cf53ee..d0982f60fd0 100644 --- a/bin/tests/system/testsummary.sh +++ b/bin/tests/system/testsummary.sh @@ -40,6 +40,12 @@ 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:/' -grep 'R:[a-z0-9_-][a-z0-9_-]*:FAIL' systests.output > /dev/null && status=1 + +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}" + status=1 +fi exit $status