From f19d6107bca9aea7742bd66eb3080f29fcf3bd81 Mon Sep 17 00:00:00 2001 From: Brentley Jones Date: Tue, 15 Mar 2022 07:39:02 -0500 Subject: [PATCH] Filter out system headers on macOS. (#15020) Fixes #14969. RELNOTES: Bazel now no longer includes system headers on macOS in coverage reports (#14969). Closes #14971. PiperOrigin-RevId: 433753228 (cherry picked from commit 71747ccc9d0032a865854613329362563c0574df) Co-authored-by: Philipp Stephani --- tools/test/collect_coverage.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test/collect_coverage.sh b/tools/test/collect_coverage.sh index 78f2b3548f2f1b..9d480ba8484e6c 100755 --- a/tools/test/collect_coverage.sh +++ b/tools/test/collect_coverage.sh @@ -229,6 +229,7 @@ LCOV_MERGER_CMD="${LCOV_MERGER} --coverage_dir=${COVERAGE_DIR} \ --filter_sources=/usr/bin/.+ \ --filter_sources=/usr/lib/.+ \ --filter_sources=/usr/include.+ \ + --filter_sources=/Applications/.+ \ --filter_sources=.*external/.+ \ --source_file_manifest=${COVERAGE_MANIFEST}"