Skip to content

Commit

Permalink
common: ignore inconsistent coverage reports
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mrc0mmand committed Nov 15, 2024
1 parent 72cdc3a commit 86adb30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,9 @@ lcov_collect() {
# Returns:
# 0 on success, 1 otherwise (i.e. no reports found, invalid data, etc.)
lcov_merge() {
local lcov_args=()
# 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
local lcov_args=(--ignore-errors inconsistent)
local file
local output_file="${1:?}"
shift
Expand Down

0 comments on commit 86adb30

Please sign in to comment.