code_size_compare: use '.md' suffix if '--markdown' enabled

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang 2023-07-28 13:47:19 +08:00
parent dcf360dd72
commit b167320e27

View file

@ -815,10 +815,11 @@ class CodeSizeComparison:
else:
output_file = os.path.join(
self.comp_dir,
'{}-{}-{}.csv'
'{}-{}-{}.{}'
.format(self.old_size_dist_info.get_info_indication(),
self.new_size_dist_info.get_info_indication(),
self.size_common_info.get_info_indication()))
self.size_common_info.get_info_indication(),
'md' if self.result_options.with_markdown else 'csv'))
output = open(output_file, "w")
self.logger.debug("Generating comparison results between {} and {}."