Mercurial > public > mercurial-scm > hg-stable
diff tests/common-pattern.py @ 50462:59fda8516774
tests: automatically glob the discovery timing information
Time is not stable in tests.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 12 Apr 2023 00:57:01 +0200 |
parents | c5e93c915ab6 |
children | e2632d9d1b6e |
line wrap: on
line diff
--- a/tests/common-pattern.py Thu Apr 06 11:41:51 2023 +0100 +++ b/tests/common-pattern.py Wed Apr 12 00:57:01 2023 +0200 @@ -122,6 +122,11 @@ % (m.group(1), m.group(2)) ), ), + # `discovery debug output + ( + br'\b(\d+) total queries in \d.\d\d\d\ds\b', + lambda m: (br'%s total queries in *.????s (glob)' % m.group(1)), + ), ] # Various platform error strings, keyed on a common replacement string