gaudirun.py
Timing.py
import re
expected = ( r"Timing\s+SUCCESS\s+The timing is \(in us\)\s*\n" +
r"\|\s*\|\s*#\s*\|\s*Total\s*\|\s*Mean\+-RMS\s*\|\s*Min/Max\s*\|\s*\n" +
r"\|\s*\(1U\)\s*\|\s*\d*\s*\|(?:[-+.\deE /]+\|){3}\s*\n" +
r"\|\s*\(2U\)\s*\|\s*\d*\s*\|(?:[-+.\deE /]+\|){3}\s*\n" +
r"\|\s*\(3U\)\s*\|\s*\d*\s*\|(?:[-+.\deE /]+\|){3}\s*\n" )
if not re.search(expected,stdout):
causes.append("missing regexp match")
result["GaudiTest.regexp"] = result.Quote(expected.replace("\\n","\n"))