Coverage: Coverage script fixes
- Add test_suite.txt here to make it easily configurable.
- Move styles in static dir.
[email protected],[email protected]
Change-Id: I8284b6f0ea225e8d0e937686fbc3f6b369b5e2b7
Reviewed-on: https://chromium-review.googlesource.com/1054386
Reviewed-by: Max Moroz <[email protected]>
Cr-Commit-Position: refs/heads/master@{#557628}
diff --git a/tools/code_coverage/coverage.py b/tools/code_coverage/coverage.py
index 71957a1..d95a129 100755
--- a/tools/code_coverage/coverage.py
+++ b/tools/code_coverage/coverage.py
@@ -207,16 +207,18 @@
self._table_entries = []
self._total_entry = {}
- template_dir = os.path.join(
- os.path.dirname(os.path.realpath(__file__)), 'html_templates')
+
+ source_dir = os.path.dirname(os.path.realpath(__file__))
+ template_dir = os.path.join(source_dir, 'html_templates')
jinja_env = jinja2.Environment(
loader=jinja2.FileSystemLoader(template_dir), trim_blocks=True)
self._header_template = jinja_env.get_template('header.html')
self._table_template = jinja_env.get_template('table.html')
self._footer_template = jinja_env.get_template('footer.html')
+
self._style_overrides = open(
- os.path.join(template_dir, 'style_overrides.css')).read()
+ os.path.join(source_dir, 'static', 'css', 'style.css')).read()
def AddLinkToAnotherReport(self, html_report_path, name, summary):
"""Adds a link to another html report in this report.