Commit 314cdbd8 authored by Vincent Stehlé's avatar Vincent Stehlé
Browse files

Parser.py: handle empty group



Currently the parser tries to record the test service as 'group' and the
test protocol as 'test set'.

However, some tests have only a protocol and no service (e.g.
LoadedImageProtocolTest). In this case, the parser will record the protocol
as 'group' and the full line dictionary as 'test set'.

Fix this case by recording an empty 'group' and the protocol as 'test set',
more in line with the generic case.

Signed-off-by: Vincent Stehlé's avatarVincent Stehlé <vincent.stehle@arm.com>
parent ccab0dbe
...@@ -61,7 +61,7 @@ def ekl_parser (file): ...@@ -61,7 +61,7 @@ def ekl_parser (file):
try: try:
current_group, current_set = split_line[8].split('\\') current_group, current_set = split_line[8].split('\\')
except: except:
current_group, current_set =split_line[8],split_line current_group, current_set = '', split_line[8]
current_set_guid = split_line[4] current_set_guid = split_line[4]
current_sub_set = split_line[6] current_sub_set = split_line[6]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment