瀏覽代碼

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

Ryan C. Gordon 3 年之前
父節點
當前提交
a47f59bbe5
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      build-scripts/codechecker-buildbot.sh

+ 6 - 0
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