Skip to content
Commit d675ba07 authored by Vincent Stehle's avatar Vincent Stehle
Browse files

parser.py: handle some missing keys



In some cases, the SCT can generate a special test entry to notify of
"abnormal hang or stop". This breaks the parsing and results in the
following exception:

  Traceback (most recent call last):
    File "parser.py", line 1085, in <module>
      cross_check = read_log_and_seq(args.log_file, args.seq_file)
    File "parser.py", line 824, in read_log_and_seq
      return combine_dbs(db1, db2)
    File "parser.py", line 695, in combine_dbs
      if x['set guid'] not in s:
         ~^^^^^^^^^^^^
  KeyError: 'set guid'

Detect and create some missing keys to repair parsing.

In this specific case, the failed test ends up being classified as
spurious.

While at it, add a unit test.

Reported-by: Ann Cheng's avatarAnn Cheng <ann.cheng@arm.com>
[Backport commit 22d9068e.]
Signed-off-by: Vincent Stehle's avatarVincent Stehlé <vincent.stehle@arm.com>
parent 1226bf94
Loading
Loading
Loading
Pipeline #27248 passed with stage
in 5 minutes and 23 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment