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:
parent
0809b75b42
commit
5cfb4bd3f5
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue