]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CI: Do not classify "no failures" stats as test-build errors (#2001)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Mon, 24 Feb 2025 19:01:52 +0000 (19:01 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 26 Feb 2025 08:10:47 +0000 (08:10 +0000)
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

index 7f27977cb31391d54ffdf4d973ee3322b2fa900d..27ff1fcd169a8dfb7e23e363230d6b86aae98343 100755 (executable)
@@ -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