mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01: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
|
import json
|
||||||
|
|
||||||
full_search = len(sys.argv) > 3 and sys.argv[3] == '--full'
|
full_search = len(sys.argv) > 3 and sys.argv[3] == '--full'
|
||||||
|
|
||||||
with open(sys.argv[1]) as f:
|
with open(sys.argv[1]) as f:
|
||||||
data = f.readlines()
|
data = f.readlines()
|
||||||
thread = None
|
thread = None
|
||||||
|
@ -25,13 +25,13 @@ with open(sys.argv[1]) as f:
|
||||||
if "action" in entry and entry["action"] == "test_end":
|
if "action" in entry and entry["action"] == "test_end":
|
||||||
thread = None
|
thread = None
|
||||||
else:
|
else:
|
||||||
if "action" in entry and \
|
if ("action" in entry and
|
||||||
entry["action"] == "test_start" and \
|
entry["action"] == "test_start" and
|
||||||
entry["test"] == sys.argv[2]:
|
entry["test"] == sys.argv[2]):
|
||||||
thread = entry["thread"]
|
thread = entry["thread"]
|
||||||
print(json.dumps(entry))
|
print(json.dumps(entry))
|
||||||
elif full_search and \
|
elif (full_search and
|
||||||
"command" in entry and \
|
"command" in entry and
|
||||||
sys.argv[2] in entry["command"]:
|
sys.argv[2] in entry["command"]):
|
||||||
thread = entry["thread"]
|
thread = entry["thread"]
|
||||||
print(json.dumps(entry))
|
print(json.dumps(entry))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue