Skip to content

Commit 86adb30

Browse files
committed
common: ignore inconsistent coverage reports
lcov 2.1 added more consistency checks that trip over coverage collected from systemd, as the coverage collected during shutdown might not be complete. Let's just ignore the errors for now. Related: systemd/systemd@238ddac
1 parent 72cdc3a commit 86adb30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/utils.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ lcov_collect() {
548548
# Returns:
549549
# 0 on success, 1 otherwise (i.e. no reports found, invalid data, etc.)
550550
lcov_merge() {
551-
local lcov_args=()
551+
# lcov 2.1 added more consistency checks that trip over coverage collected from systemd, as the coverage
552+
# collected during shutdown might not be complete; let's just ignore the errors for now
553+
local lcov_args=(--ignore-errors inconsistent)
552554
local file
553555
local output_file="${1:?}"
554556
shift

0 commit comments

Comments
 (0)