From 65833355ca36029eff45838068f32b6db8fb5972 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Thu, 18 Dec 2025 19:18:27 +0100 Subject: [PATCH] tests: Disable gcov warnings Newer gcov/lcov versions shipped in CI container images throw a warning and thus cause the CI to fail. It's unclear how to fix this warning at the moment, but gcov isn't critical anyway. So disable this specific warning for now, so that we can roll out new CI images. Excluding file '/home/coreboot/node-root/workspace/test_coreboot/payloads/libpayload/tests/libcbfs/cbfs-lookup-test.c' lcov: WARNING: (inconsistent) /home/coreboot/node-root/workspace/test_coreboot/payloads/libpayload/libcbfs/cbfs.c:79: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero. (use "lcov --ignore-errors inconsistent,inconsistent ..." to suppress this warning) Excluding file '/home/coreboot/node-root/workspace/test_coreboot/payloads/libpayload/tests/libcbfs/cbfs-lookup-test.c' [snip] Message summary: 1 warning message: inconsistent: 1 genhtml: ERROR: (corrupt) unable to read trace file 'build/coverage/tests.info': genhtml: ERROR: (inconsistent) "/home/coreboot/node-root/workspace/test_coreboot/payloads/libpayload/libcbfs/cbfs.c":77: function 'cbfs_unmap' is not hit but line 79 is. To skip consistency checks, see the 'check_data_consistency' section in man lcovrc(5). (use "genhtml --ignore-errors inconsistent ..." to bypass this error) (use "genhtml --ignore-errors corrupt ..." to bypass this error) make[1]: *** [tests/Makefile.mk:277: coverage-report] Error 1 make: *** [util/testing/Makefile.mk:103: what-jenkins-does] Error 2 Change-Id: I2c52c53fbe856a8bca062f34c576fdfda3818f2b Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/90554 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- payloads/libpayload/tests/Makefile.mk | 2 +- tests/Makefile.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/payloads/libpayload/tests/Makefile.mk b/payloads/libpayload/tests/Makefile.mk index a6cee5f480..9ab8c3b71c 100644 --- a/payloads/libpayload/tests/Makefile.mk +++ b/payloads/libpayload/tests/Makefile.mk @@ -273,7 +273,7 @@ clean-junit.xml-unit-tests: ifeq ($(COV),1) coverage-report: - lcov -o $(testobj)/tests.info -c -d $(testobj) --exclude '$(testsrc)/*' + lcov --ignore-errors inconsistent -o $(testobj)/tests.info -c -d $(testobj) --exclude '$(testsrc)/*' genhtml -q -o $(coverage-dir) -t "coreboot unit tests" -s $(testobj)/tests.info clean-coverage-report: diff --git a/tests/Makefile.mk b/tests/Makefile.mk index f3f122dd38..08ba3dc3cb 100644 --- a/tests/Makefile.mk +++ b/tests/Makefile.mk @@ -149,7 +149,7 @@ clean-junit.xml-unit-tests: ifeq ($(COV),1) coverage-report: lcov -o $(testobj)/tests.info -c -d $(testobj) --exclude '$(testsrc)/*' - genhtml -q -o $(testobj)/$(coverage_dir) -t "coreboot unit tests" \ + genhtml --ignore-errors inconsistent,corrupt -q -o $(testobj)/$(coverage_dir) -t "coreboot unit tests" \ -s $(testobj)/tests.info clean-coverage-report: