<div dir="ltr"><div>Hi, </div><div><br></div><div>Have you had time to try this patch? </div><div>Does the HTML report (format) look alright to you after the addition? <br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 23, 2019 at 4:10 AM Vijay Kumar Banerjee <<a href="mailto:vijaykumar9597@gmail.com">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
tester/rt/coverage.py | 18 ++++++++++++++++++<br>
1 file changed, 18 insertions(+)<br>
<br>
diff --git a/tester/rt/coverage.py b/tester/rt/coverage.py<br>
index 3e722cb..bdf3c5f 100644<br>
--- a/tester/rt/coverage.py<br>
+++ b/tester/rt/coverage.py<br>
@@ -211,6 +211,23 @@ class report_gen_html:<br>
path.copy_tree(covoar_css_path, symbol_set_dir)<br>
path.copy_tree(table_js_path, symbol_set_dir)<br>
<br>
+ def add_dir_name(self):<br>
+ for symbol_set in self.symbol_sets:<br>
+ symbol_set_dir = path.join(self.build_dir,<br>
+ self.bsp + '-coverage', symbol_set)<br>
+ html_files = os.listdir(symbol_set_dir)<br>
+ for html_file in html_files:<br>
+ html_file = path.join(symbol_set_dir, html_file)<br>
+ if path.exists(html_file) and 'html' in html_file:<br>
+ with open(html_file, 'r') as f:<br>
+ file_data = f.read()<br>
+ text = file_data[file_data.find('<div class="heading-title">')\<br>
+ +len('<div class="heading-title">') \<br>
+ : file_data.find('</div')]<br>
+ file_data = file_data.replace(text, text + '<br>' + symbol_set)<br>
+ with open(html_file, 'w') as f:<br>
+ f.write(file_data)<br>
+<br>
class build_path_generator(object):<br>
'''<br>
Generates the build path from the path to executables<br>
@@ -406,6 +423,7 @@ class coverage_run(object):<br>
self.macros['bsp'])<br>
report.generate()<br>
report.add_covoar_css()<br>
+ report.add_dir_name()<br>
<br>
def _cleanup(self):<br>
if not self.no_clean:<br>
-- <br>
2.20.1<br>
<br>
</blockquote></div></div>