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.
This commit is contained in:
@@ -43,6 +43,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
|
||||
|
||||
Reference in New Issue
Block a user