diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-25 14:39:13 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-25 17:55:41 +0100 |
commit | 237d81fdb3fd3395d8e61b2c89f82b568cc33017 (patch) | |
tree | cd74ac3491547c95815fe90ea3b8b1d2de974d43 /test/test-functions | |
parent | test: do an initial coverage capture (diff) | |
download | systemd-237d81fdb3fd3395d8e61b2c89f82b568cc33017.tar.xz systemd-237d81fdb3fd3395d8e61b2c89f82b568cc33017.zip |
test: filter the merged coverage report instead
So we don't have to do this twice - once for the base report and then
for each "real" one.
Follow-up to 7fdd6e157a.
Diffstat (limited to '')
-rw-r--r-- | test/test-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions index 7eb0e8e2e3..644410d7bc 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1498,7 +1498,6 @@ check_coverage_reports() { # Create a coverage report that will later be uploaded. Remove info about # system libraries/headers, as we don't really care about them. lcov --directory "${root}/${BUILD_DIR:?}" --capture --output-file "${dest}.new" - lcov --remove "${dest}.new" -o "${dest}.new" '/usr/include/*' '/usr/lib/*' if [[ -f "$dest" ]]; then # If the destination report file already exists, don't overwrite it, but # merge it with the already present one - this usually happens when @@ -1509,6 +1508,7 @@ check_coverage_reports() { # report we did during the setup phase (see test_setup()). lcov --add-tracefile "${TESTDIR:?}/coverage-base" --add-tracefile "${dest}.new" -o "${dest}" fi + lcov --remove "$dest" -o "$dest" '/usr/include/*' '/usr/lib/*' rm -f "${dest}.new" # If the test logs contain lines like: |