]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
ci: ignore parse errors from gcovr
authorBill Roberts <bill.roberts@arm.com>
Tue, 6 Feb 2024 14:11:33 +0000 (08:11 -0600)
committerBill Roberts <bill.roberts@arm.com>
Mon, 3 Jun 2024 14:01:24 +0000 (09:01 -0500)
The documentation for gcovr suggests this as a work around to a bug in gcovr
that cause negative hit values, which is impossible, and is not accepted by
default and will cause the CI to fail:
  -  https://gcovr.com/en/stable/guide/gcov_parser.html

To correct this, add option:
  -gcov-ignore-parse-errors=negative_hits.warn_once_per_file

Signed-off-by: Bill Roberts <bill.roberts@arm.com>
.gitlab-ci.yml

index c005bd68e8a519bca48b776f20d91063d30028ce..c5eef361d9401f2e247d4c6a76153def658022e8 100644 (file)
@@ -633,7 +633,7 @@ fedora-abicoverage/test:
     - make abi-check
     - make pic-check
     - make -j$CHECKJOBS check
-    - gcovr -fprofile-update=atomic --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR}
+    - gcovr -fprofile-update=atomic --xml-pretty --exclude-unreachable-branches --gcov-ignore-parse-errors=negative_hits.warn_once_per_file --print-summary -o coverage.xml --root ${CI_PROJECT_DIR}
     - if objdump -R lib/.libs/libgnutls.so | grep INTERNAL ; then false ; fi
   coverage: /^\s*lines:\s*\d+.\d+\%/
   artifacts: