changed: change cppcheck tests so we can use jenkins reporter plugin
This commit is contained in:
parent
88a684d440
commit
ff171e50f4
@ -21,7 +21,15 @@ let "nval=$nmatch-$nsys-$nnone"
|
|||||||
if test $nval -gt 0
|
if test $nval -gt 0
|
||||||
then
|
then
|
||||||
cat $tmpfil
|
cat $tmpfil
|
||||||
rm $tmpfil
|
$cppcheck_cmd $@ -q --xml --xml-version=2 --force --enable=all --suppress=unusedFunction $source_file &> $tmpfil
|
||||||
|
if test -f cppcheck-result.xml
|
||||||
|
then
|
||||||
|
mv cppcheck-result.xml cppcheck-result-old.xml
|
||||||
|
xml_grep --wrap results --cond error cppcheck-result-old.xml $tmpfil > cppcheck-result.xml
|
||||||
|
else
|
||||||
|
mv $tmpfil cppcheck-result.xml
|
||||||
|
fi
|
||||||
|
rm -f cppcheck-result-old.xml $tmpfil
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user