mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix tidy issues in wpt-summarize.py.
This commit is contained in:
parent
5867e115c2
commit
46af28a0e1
1 changed files with 7 additions and 7 deletions
|
@ -13,7 +13,7 @@ import sys
|
|||
import json
|
||||
|
||||
full_search = len(sys.argv) > 3 and sys.argv[3] == '--full'
|
||||
|
||||
|
||||
with open(sys.argv[1]) as f:
|
||||
data = f.readlines()
|
||||
thread = None
|
||||
|
@ -25,13 +25,13 @@ with open(sys.argv[1]) as f:
|
|||
if "action" in entry and entry["action"] == "test_end":
|
||||
thread = None
|
||||
else:
|
||||
if "action" in entry and \
|
||||
entry["action"] == "test_start" and \
|
||||
entry["test"] == sys.argv[2]:
|
||||
if ("action" in entry and
|
||||
entry["action"] == "test_start" and
|
||||
entry["test"] == sys.argv[2]):
|
||||
thread = entry["thread"]
|
||||
print(json.dumps(entry))
|
||||
elif full_search and \
|
||||
"command" in entry and \
|
||||
sys.argv[2] in entry["command"]:
|
||||
elif (full_search and
|
||||
"command" in entry and
|
||||
sys.argv[2] in entry["command"]):
|
||||
thread = entry["thread"]
|
||||
print(json.dumps(entry))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue