Commit 62bc83a6 authored by David Fairbrother's avatar David Fairbrother
Browse files

Correct user message from cppcheck build

This was incorrectly printing the expected counts, not the actual which
is misleading
parent 47dad5e1
......@@ -43,7 +43,7 @@ cppcheck-htmlreport --file=cppcheck.xml --title=Embedded --report-dir=cppcheck-r
# Mark build as passed or failed
errors_count=$(grep -c '</error>' cppcheck.xml)
if [ $errors_count -ne ${ALLOWED_ERRORS_COUNT} ]; then
echo "CppCheck found ${ALLOWED_ERRORS_COUNT} errors."
echo "CppCheck found ${errors_count} errors."
echo "See CppCheck link on the job page for more detail, or adjust the count."
exit 1
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment