Fix tidy issues in wpt-summarize.py.

This commit is contained in:
Josh Matthews 2019-11-22 13:03:18 -05:00 committed by GitHub
parent 5867e115c2
commit 46af28a0e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))