Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useful scripts for interacting with WPT logs #24841

Merged
merged 10 commits into from Nov 23, 2019

Fix tidy issues in wpt-summarize.py.

  • Loading branch information
jdm committed Nov 22, 2019
commit 46af28a0e159ca8cb749cff7123175a8e9f95309
@@ -13,7 +13,7 @@
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 @@
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))
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.