Changeset fb03e22 in rtems-tools


Ignore:
Timestamp:
Nov 7, 2018, 7:41:08 AM (6 months ago)
Author:
Vijay Kumar Banerjee <vijaykumar9597@…>
Branches:
master
Children:
f9a17cd
Parents:
94214bf
git-author:
Vijay Kumar Banerjee <vijaykumar9597@…> (11/07/18 07:41:08)
git-committer:
Chris Johns <chrisj@…> (11/17/18 01:31:32)
Message:

Coverage: add the style and js files to the symbol-set report directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/rt/coverage.py

    r94214bf rfb03e22  
    202202        self._create_index_file(head_section,index_content)
    203203
    204     def add_covoar_src_path(self):
     204    def add_covoar_css(self):
    205205        table_js_path = path.join(self.covoar_src_path, 'table.js')
    206206        covoar_css_path = path.join(self.covoar_src_path, 'covoar.css')
     
    208208            symbol_set_dir = path.join(self.build_dir,
    209209                                       self.bsp + '-coverage', symbol_set)
    210             html_files = os.listdir(symbol_set_dir)
    211             for html_file in html_files:
    212                 html_file = path.join(symbol_set_dir, html_file)
    213                 if path.exists(html_file) and 'html' in html_file:
    214                     with open(html_file, 'r') as f:
    215                         file_data = f.read()
    216                     file_data = file_data.replace('table.js', table_js_path)
    217                     file_data = file_data.replace('covoar.css',
    218                                                   covoar_css_path)
    219                     with open(html_file, 'w') as f:
    220                         f.write(file_data)
     210            path.copy_tree(covoar_css_path, symbol_set_dir)
     211            path.copy_tree(table_js_path, symbol_set_dir)
    221212
    222213class build_path_generator(object):
     
    403394                                     self.macros['bsp'])
    404395            report.generate()
    405             report.add_covoar_src_path()
     396            report.add_covoar_css()
    406397
    407398    def _cleanup(self):
Note: See TracChangeset for help on using the changeset viewer.