Skip to content

Commit

Permalink
CI: Do not classify "no failures" stats as test-build errors (#2001)
Browse files Browse the repository at this point in the history
CppUnit tests emit a lot of "FAIL: 0" and "XFAIL: 0" lines, which are
incorrectly classified as errors by the test-builds.sh. Filter these
messages out as they are not indicative of problems.
  • Loading branch information
kinkie authored and squid-anubis committed Feb 26, 2025
1 parent 4ae7430 commit 0c90595
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test-builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ buildtest() {
grep -E "BUILD" ${log}

errors="^ERROR|[ ]error:|[ ]Error[ ]|No[ ]such|assertion[ ]failed|FAIL:|:[ ]undefined"
grep -E "${errors}" ${log}
noterrors=" X?FAIL: ?0$"
grep -E "${errors}" ${log} | grep -v -E "${noterrors}"

if test $result -eq 0; then
# successful execution
Expand Down

0 comments on commit 0c90595

Please sign in to comment.