From 4df996cfd7ffaef5ad48a6ae8245d33a1414befa Mon Sep 17 00:00:00 2001 From: dzid26 Date: Tue, 4 Jun 2024 18:24:51 +0100 Subject: [PATCH] Cppcheck checklist bugfix (#1969) * Fix cppcheck checklist diff * cppcheck already has exitcode=2 --- tests/misra/test_misra.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/misra/test_misra.sh b/tests/misra/test_misra.sh index c7d16ae1..e65f6a5e 100755 --- a/tests/misra/test_misra.sh +++ b/tests/misra/test_misra.sh @@ -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