Skip to content

Commit

Permalink
tap2json: fix typo
Browse files Browse the repository at this point in the history
findall() returns a list, not a match object.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Aug 21, 2024
1 parent 9a3968d commit dfd8aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def parse_tap(tap, name, only_fails):
elif r[5].lower().startswith('ignore flaky'):
result['result'] = "flaky"

t = TIME_RE.findall(r[5].lower()).groups()
t = TIME_RE.findall(r[5].lower())
if t:
result['time_ms'] = t[-1] # take the last one

Expand Down

0 comments on commit dfd8aa7

Please sign in to comment.