Run coverage.py with --no-component-view.
The component view, which requires a mapping of directories to
components, is not useful for PDFium because:
- PDFium does not have "COMPONENT:" annotations in OWNERS files.
- The Chromium coverage tool is hard coded to use Chromium's component
view mapping data.
Change-Id: If63fbee2391a2836bf24700fbaea70c4d53a7136
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/65412
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/testing/tools/coverage/coverage_report.py b/testing/tools/coverage/coverage_report.py
index 743d916..5785eab 100755
--- a/testing/tools/coverage/coverage_report.py
+++ b/testing/tools/coverage/coverage_report.py
@@ -253,6 +253,9 @@
# Blacklist test files
coverage_args += ['-i', '.*test.*']
+ # Component view is only useful for Chromium
+ coverage_args += ['--no-component-view']
+
return self.call([coverage_bin] + coverage_args) == 0
def run(self):