From 376d814ea49560e17f90911bd955c6df0000e2b2 Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Wed, 28 Apr 2021 17:20:28 -0700 Subject: [PATCH] Make tools/code_check.sh optional Signed-off-by: Louise Poubel --- .../docker/lib/_generic_linux_compilation_build.sh.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins-scripts/docker/lib/_generic_linux_compilation_build.sh.bash b/jenkins-scripts/docker/lib/_generic_linux_compilation_build.sh.bash index 2868bee11..5a41f5365 100644 --- a/jenkins-scripts/docker/lib/_generic_linux_compilation_build.sh.bash +++ b/jenkins-scripts/docker/lib/_generic_linux_compilation_build.sh.bash @@ -102,7 +102,7 @@ else echo "Requested: no test run" fi -if $GENERIC_ENABLE_CPPCHECK; then +if [ $GENERIC_ENABLE_CPPCHECK ] && [ -f tools/code_check.sh ]; then echo '# BEGIN SECTION: cppcheck' cd $WORKSPACE/${SOFTWARE_DIR} if [ ! -f tools/cpplint_to_cppcheckxml.py ]; then