Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 6a6f8f2

Browse files
jgrahammoz-wptsync-bot
authored andcommitted
Fix comments
DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D49283 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1584192 gecko-commit: 491690739db4e4ad8eaa26494d45d3a0430b2ac1 gecko-integration-branch: autoland gecko-reviewers: ato
1 parent 927d87e commit 6a6f8f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/wptrunner/wptrunner/metadata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,14 @@ def update_from_log(self, log_file):
358358
# * wptreport format; one run per line
359359
# * raw log format
360360

361-
# Try one wptreport file first
361+
# Try reading a single json object in wptreport format
362362
self.run_info = None
363363
success = self.get_wptreport_data(log_file.read())
364364

365365
if success:
366366
return
367367

368-
# Now try multiple wptreport files
368+
# Try line-separated json objects in wptreport format
369369
log_file.seek(0)
370370
for line in log_file:
371371
success = self.get_wptreport_data(line)
@@ -374,6 +374,7 @@ def update_from_log(self, log_file):
374374
else:
375375
return
376376

377+
# Assume the file is a raw log
377378
log_file.seek(0)
378379
self.update_from_raw_log(log_file)
379380

0 commit comments

Comments
 (0)