summaryrefslogtreecommitdiffstats
path: root/tester/rt
diff options
context:
space:
mode:
authorAlex White <alex.white@oarcorp.com>2021-02-25 10:52:41 -0600
committerJoel Sherrill <joel@rtems.org>2021-03-30 13:15:58 -0500
commit4d21ff8d6081c571f275ace36b13bdedd8623e2a (patch)
tree8b3cba0a3b30a5d71f804c54518b407c6cab45e9 /tester/rt
parentcoverage/reports: Improve formatting and clarity (diff)
downloadrtems-tools-4d21ff8d6081c571f275ace36b13bdedd8623e2a.tar.bz2
coverage/reports: Share common JS and CSS in reports
This moves all of the javascript and CSS files that are shared by the symbol set HTML reports to the shared parent directory. It also includes the javascript and CSS in the top-level index file.
Diffstat (limited to 'tester/rt')
-rw-r--r--tester/rt/coverage.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tester/rt/coverage.py b/tester/rt/coverage.py
index d62c853..ec3957c 100644
--- a/tester/rt/coverage.py
+++ b/tester/rt/coverage.py
@@ -137,6 +137,8 @@ class report_gen_html:
head_section += ' text-align:center;' + os.linesep
head_section += ' }' + os.linesep
head_section += ' </style>' + os.linesep
+ head_section += ' <link rel="stylesheet" href="' + self.bsp + '-coverage/covoar.css">' + os.linesep
+ head_section += ' <script type="text/javascript" src="' + self.bsp + '-coverage/table.js"></script>' + os.linesep
head_section += '</head>' + os.linesep
return head_section
@@ -221,11 +223,10 @@ class report_gen_html:
def add_covoar_css(self):
table_js_path = path.join(self.covoar_src_path, 'table.js')
covoar_css_path = path.join(self.covoar_src_path, 'covoar.css')
- for symbol_set in self.symbol_sets:
- symbol_set_dir = path.join(self.build_dir,
- self.bsp + '-coverage', symbol_set)
- path.copy_tree(covoar_css_path, symbol_set_dir)
- path.copy_tree(table_js_path, symbol_set_dir)
+ coverage_directory = path.join(self.build_dir,
+ self.bsp + '-coverage')
+ path.copy_tree(covoar_css_path, coverage_directory)
+ path.copy_tree(table_js_path, coverage_directory)
def add_dir_name(self):
for symbol_set in self.symbol_sets: