From e8f504c0c0167f86c01830d3506ed6974644fc87 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Tue, 21 May 2024 14:09:22 -0700 Subject: [PATCH] Coverage: Ignore a few errors during generation --- testing/coverage/lcov_html.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/coverage/lcov_html.sh b/testing/coverage/lcov_html.sh index e858293e77..2d166282fe 100755 --- a/testing/coverage/lcov_html.sh +++ b/testing/coverage/lcov_html.sh @@ -123,13 +123,13 @@ verify_run "lcov --no-external --capture --directory . --output-file $COVERAGE_F # Zeek coverage numbers. for TARGET in $REMOVE_TARGETS; do echo -n "Getting rid of $TARGET files from tracefile... " - verify_run "lcov --remove $COVERAGE_FILE $TARGET --output-file $COVERAGE_FILE" + verify_run "lcov --ignore-errors unused,empty --remove $COVERAGE_FILE $TARGET --output-file $COVERAGE_FILE" done # 6. Create HTML files or Coveralls report if [ $HTML_REPORT -eq 1 ]; then echo -n "Creating HTML files... " - verify_run "genhtml -o $COVERAGE_HTML_DIR $COVERAGE_FILE" + verify_run "genhtml --ignore-errors empty -o $COVERAGE_HTML_DIR $COVERAGE_FILE" else # The data we send to coveralls has a lot of duplicate files in it because of the # zeek symlink in the src directory. Run a script that cleans that up.