lint: properly terminate junit report on error

Otherwise </testsuite> is missing and jenkins can't make sense of
things.

Change-Id: If11a6d2506efc9d7c915f50896b2714bc66e3b65
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/12478
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Patrick Georgi 2015-11-19 15:46:37 +01:00 committed by Martin Roth
parent dea0a7f9ae
commit a791fbb0fa
1 changed files with 1 additions and 1 deletions

View File

@ -69,6 +69,6 @@ for script in "$(dirname "$0")/${1}-"*; do
junit_write ' </testcase>' junit_write ' </testcase>'
done done
test $FAILED -eq 0 || { echo "ERROR: $FAILED test(s) failed."; rm -f "$LINTLOG" && exit 1; };
rm -f "$LINTLOG" rm -f "$LINTLOG"
junit_write '</testsuite>' junit_write '</testsuite>'
test $FAILED -eq 0 || { echo "ERROR: $FAILED test(s) failed."; exit 1; };