Commit c04f3dc7 authored by David Fairbrother's avatar David Fairbrother
Browse files

Detect if the cppcheck count needs to be lowered

This prevent regressions from fixes previously in-flight
parent a660db47
......@@ -42,9 +42,9 @@ 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 -gt ${ALLOWED_ERRORS_COUNT} ]; then
if [ $errors_count -ne ${ALLOWED_ERRORS_COUNT} ]; then
echo "CppCheck found ${ALLOWED_ERRORS_COUNT} errors."
echo "See CppCheck link on the job page for more detail."
echo "See CppCheck link on the job page for more detail, or adjust the count."
exit 1
else
echo "CppCheck found no errors"
......
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