diff --git a/hudson-sflphone-script.sh b/hudson-sflphone-script.sh index b60691ed037c198d5bacff382bbc43794c2fde46..b508dd1f39333eea453267952f2e56d067cd0ac0 100755 --- a/hudson-sflphone-script.sh +++ b/hudson-sflphone-script.sh @@ -13,7 +13,9 @@ DOXYGEN=0 function run_code_analysis { # Check if cppcheck is installed on the system if [ `which cppcheck &>/dev/null ; echo $?` -ne 1 ] ; then - cppcheck -I src/ . --enable=all --xml 2> cppcheck-report.xml + pushd src + cppcheck . --enable=all --xml 2> cppcheck-report.xml + popd fi }