Commit a47f59bbe542e5cc21174208047916029cb18128

Ryan C. Gordon 2021-08-27T01:03:14

codechecker-buildbot.sh: Don't fail if a static analysis issue is reported.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/build-scripts/codechecker-buildbot.sh b/build-scripts/codechecker-buildbot.sh
index f39c08b..e8c0a4c 100755
--- a/build-scripts/codechecker-buildbot.sh
+++ b/build-scripts/codechecker-buildbot.sh
@@ -31,7 +31,13 @@ perl -w -pi -e 's/\-arch\s+.*?\s+//g;' compile_commands.json
 
 rm -rf ../analysis
 CodeChecker analyze compile_commands.json -o ./reports
+
+# "parse" returns 2 if there was a static analysis issue to report, but this
+#  does not signify an error in the parsing (that would be error code 1). Turn
+#  off the abort-on-error flag.
+set +e
 CodeChecker parse ./reports -e html -o ../analysis
+set -e
 
 cd ..
 chmod -R a+r analysis