aboutsummaryrefslogtreecommitdiff
path: root/tests/cyclictest/parse
blob: 75f29b8eee109312e1d3d0161fc8c95d104a7716 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python3
import re
import fileinput

result_re = re.compile("! T: 0 \(.*\) P:.* I:.* C:.* Min: *(?P<min>\d+) Act: *(?P<act>\d+) Avg: *(?P<avg>\d+) Max: *(?P<max>\d+) ok")

for line in fileinput.input():
    match = result_re.match(line)
    if match:
        print(match.group('max'))