Comment 3 for bug 1296880

Revision history for this message
Milosz Wasilewski (mwasilew) wrote :

OK, understood.
I'm using a simple script for checking my regexps:

import sys
import re

r = re.compile("^(?P<result>(PASS|FAIL))\s(?P<test_case_id>[a-zA-Z\.]+)")
f = open(sys.argv[1], "r")
for line in f.readlines():
    w = r.search(line)
    if w:
         print w.group('result'), w.group('test_case_id')
f.close()

This is how I understand LAVA parses the output. I copy the output from the full log and save it to file. Than I pass this file to the script. The only difference is that the single backslashes have to be replaced with double ones in YAML file. That works perfectly fine for me. I guess it might save your day in a short term (while the LAVA regexp parser tool is not available).