If you have many files of go test runs concat like so:
cat <path>/* > concat_tests.raw
Call: python t.py concat_tests.raw
If you have many files of go test runs concat like so:
cat <path>/* > concat_tests.raw
Call: python t.py concat_tests.raw
import sys | |
import re | |
with open(sys.argv[1], 'r') as f: | |
data = f.read() | |
passes = re.findall(r'(?<=PASS:\s).*?(?=\s\()', data) | |
passes.sort() | |
print("\n".join(passes)) | |