mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
regrtest: add time to output
Timestamps should help to debug slow buildbots, and timeout and hang on buildbots.
This commit is contained in:
parent
10b73e1748
commit
24f949e10c
2 changed files with 19 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue