Report add_subsuite action in unexpected log (#37323)

This is needed for subsuites to work with update-wpt.

Testing: We do not have tests for WPT scripts, but I manually tested
that update-wpt does not throw anymore.

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev 2025-06-07 14:09:27 +02:00 committed by GitHub
parent 89977c0e63
commit 87de9fdf8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -304,5 +304,7 @@ def write_unexpected_only_raw_log(
with open(raw_log_file) as input:
for line in input.readlines():
data = json.loads(line)
if data["action"] in ["suite_start", "suite_end"] or ("test" in data and data["test"] in tests):
if data["action"] in ["suite_start", "suite_end", "add_subsuite"] or (
"test" in data and data["test"] in tests
):
output.write(line)