CI: Fix Coverage Analysis

The coverage_analysis.py while generating report, duplicates
files and functions of components.

Signed-off-by: Arkadiusz Cholewinski <arkadiuszx.cholewinski@intel.com>
This commit is contained in:
Arkadiusz Cholewinski 2024-05-20 17:06:50 +02:00 committed by Henrik Brix Andersen
commit 5cfb4bd3f5

View file

@ -274,7 +274,9 @@ class Json_report:
"Name":i_fun['name']
}
json_file['Uncovered_Functions'].append(json_uncovered_funciton)
json_files.append(json_file)
comp_exists = [x for x in json_files if x['Path'] == json_file['Path']]
if not comp_exists:
json_files.append(json_file)
json_component['files']=json_files
output_json['components'].append(json_component)
else: