From 4e5e6506b51d3f952023df609b2b3e4469cbdc63 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sun, 11 Mar 2018 18:01:44 -0400 Subject: pvscheck: Ignore exit code of pvs-studio-analyzer Since its typically non-zero, the script immediately exits instead of converting the binary log into useful formats. --- scripts/pvscheck.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/pvscheck.sh') diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh index 30c4d296d7..314966f6aa 100755 --- a/scripts/pvscheck.sh +++ b/scripts/pvscheck.sh @@ -343,13 +343,15 @@ run_analysis() {( cd "$tgt" + # pvs-studio-analyzer exits with a non-zero exit code when there are detected + # errors, so ignore its return pvs-studio-analyzer \ analyze \ --threads "$(get_jobs_num)" \ --output-file PVS-studio.log \ --verbose \ --file build/compile_commands.json \ - --sourcetree-root . + --sourcetree-root . || true plog-converter -t xml -o PVS-studio.xml PVS-studio.log plog-converter -t errorfile -o PVS-studio.err PVS-studio.log -- cgit