Workaround: Make CppCheck Always Success
CppCheck in infra needs to be updated.
Otherwise it would fail even with no error.
For the time being, CppCheck would not vote.
This patch will be reverted after CppCheck is updated.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I4f95924e57247f31852955d964400ed496f4bc16
diff --git a/run-cppcheck.sh b/run-cppcheck.sh
index 2bb31e9..5a14c56 100755
--- a/run-cppcheck.sh
+++ b/run-cppcheck.sh
@@ -145,9 +145,11 @@
fi
function cppcheck_failed {
- echo "cppcheck failed."
- echo "Check log for errors."
- exit 1
+ # echo "cppcheck failed."
+ # echo "Check log for errors."
+ echo "CppCheck needs to be updated. Current Version would fail with no error."
+ echo "Skip voting for the time being."
+ exit 0
}
EXTRA_ARGS="--error-exitcode=1"