From 0c90595b9d63930f07313a60eb3c7ec9859251bf Mon Sep 17 00:00:00 2001 From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Mon, 24 Feb 2025 19:01:52 +0000 Subject: [PATCH] CI: Do not classify "no failures" stats as test-build errors (#2001) 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. --- test-builds.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test-builds.sh b/test-builds.sh index 7f27977cb31..27ff1fcd169 100755 --- a/test-builds.sh +++ b/test-builds.sh @@ -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