regrtest: add time to output

Timestamps should help to debug slow buildbots, and timeout and hang on
buildbots.
This commit is contained in:
Victor Stinner 2016-03-22 15:14:09 +01:00
parent 10b73e1748
commit 24f949e10c
2 changed files with 19 additions and 6 deletions

View file

@ -351,7 +351,7 @@ class BaseTestCase(unittest.TestCase):
self.assertRegex(output, regex)
def parse_executed_tests(self, output):
regex = r'^\[ *[0-9]+(?:/ *[0-9]+)?\] (%s)$' % self.TESTNAME_REGEX
regex = r'^[0-9]+:[0-9]+:[0-9]+ \[ *[0-9]+(?:/ *[0-9]+)?\] (%s)$' % self.TESTNAME_REGEX
parser = re.finditer(regex, output, re.MULTILINE)
return list(match.group(1) for match in parser)