Skip to content

Commit

Permalink
Adds driver find.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Oct 25, 2022
1 parent 7cc13c0 commit af05cc7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/difference/core/driver/find.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
with open("debug.log") as fd:
txt = fd.read()

lines = []
txt = txt.split("\n")
for line in txt:
s = "action"
if s in line:
ix = line.index(s)
comma = line.index(",", ix)
first = ix + len(s)
word = line[first:comma]
print(word)
num = int(word)
s = "diagnostic]"
ix = line.index(s) + len(s)
line = line[ix:]
lines.append((num, line))

lines.sort(key=lambda l: l[0])
for l in lines:
print(l)

0 comments on commit af05cc7

Please sign in to comment.