From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Mon, 24 Feb 2025 19:01:52 +0000 (+0000) Subject: CI: Do not classify "no failures" stats as test-build errors (#2001) X-Git-Tag: SQUID_7_0_2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91645a759c7313cd63fde764b1165cc13cd94759;p=thirdparty%2Fsquid.git 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. --- diff --git a/test-builds.sh b/test-builds.sh index 7f27977cb3..27ff1fcd16 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