Cppcheck checklist bugfix (#1969)

* Fix cppcheck checklist diff

* cppcheck already has exitcode=2
This commit is contained in:
dzid26
2024-06-04 18:24:51 +01:00
committed by GitHub
parent b6b8144523
commit 4df996cfd7

View File

@@ -22,7 +22,7 @@ if [ -z "$SKIP_TABLES_DIFF" ]; then
python $CPPCHECK_DIR/addons/misra.py -generate-table > coverage_table
if ! git diff --quiet coverage_table; then
echo -e "${YELLOW}MISRA coverage table doesn't match. Update and commit:${NC}"
exit 2
exit 3
fi
fi
@@ -79,7 +79,7 @@ printf "\n${GREEN}Success!${NC} took $SECONDS seconds\n"
# ensure list of checkers is up to date
cd $DIR
if [ -z "$SKIP_TABLES_DIFF" ] && ! git diff --quiet coverage_table; then
if [ -z "$SKIP_TABLES_DIFF" ] && ! git diff --quiet $CHECKLIST; then
echo -e "\n${YELLOW}WARNING: Cppcheck checkers.txt report has changed. Review and commit...${NC}"
exit 3
exit 4
fi