Skip to content

Commit ed5af43

Browse files
Ashishsharma1903chetan-rathore
authored andcommitted
Fix duplicate GUID override and add subtest description mapping
• added extraction of sub_Test_Description from edk2-test-parser logs (first column) • updated SCT logs_to_json to match subtests using (EntryPointGUID + SubTestGUID + Description) • prevents incorrect overrides when multiple SCT subtests share the same GUID • ensures only the intended subtest gets updated based on EDK2 result Signed-off-by: Ashish Sharma [email protected] Change-Id: I65284cdf93f8ca8684a7abae5610f8925c5ae48b
1 parent 6feaa0b commit ed5af43

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

common/log_parser/bbr/sct/logs_to_json.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,12 +502,10 @@ def main(input_file, output_file):
502502

503503
for subtest in test_obj["subtests"]:
504504
st_guid = subtest["sub_Test_GUID"].upper()
505-
<<<<<<< HEAD (20d715 acs sort keys for merged json and sct changes for json)
506505
if (ep_guid_current, st_guid) in subtest_dict:
507506
match_record = subtest_dict[(ep_guid_current, st_guid)]
508507
subtest["sub_test_result"] = normalize_result(match_record["result"])
509508
subtest["sub_test_result_reason"] = match_record["reason"]
510-
=======
511509
desc_key = subtest["sub_Test_Description"].strip().upper()
512510
lookup_key = (ep_guid_current, st_guid, desc_key)
513511

@@ -518,7 +516,6 @@ def main(input_file, output_file):
518516
if result_val:
519517
subtest["sub_test_result"] = normalize_result(result_val)
520518
subtest["reason"] = reason_val
521-
>>>>>>> CHANGE (1260ee Fix duplicate GUID override and add subtest description mapp)
522519

523520
# Reorder final dictionary so "test_result" & "reason" appear after "Returned Status Code"
524521
for i, test_obj in enumerate(results):

0 commit comments

Comments
 (0)