comparison tests/common-pattern.py @ 52465:c21c9ec35c5d

test-sparse-revlog: add common-pattern rule for the timing This will help to update the file output painlessly.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 04 Dec 2024 10:21:08 +0100
parents 73a43fe3e6fd
children
comparison
equal deleted inserted replaced
52464:9db98b503596 52465:c21c9ec35c5d
120 lambda m: (br'%s total queries in *.????s (glob)' % m.group(1)), 120 lambda m: (br'%s total queries in *.????s (glob)' % m.group(1)),
121 ), 121 ),
122 ( 122 (
123 br'\belapsed time: \d+.\d{6} seconds\b', 123 br'\belapsed time: \d+.\d{6} seconds\b',
124 br'elapsed time: *.?????? seconds (glob)', 124 br'elapsed time: *.?????? seconds (glob)',
125 ),
126 # delta find debug time
127 (
128 br'(DBG-DELTAS: .* - )duration=\d+\.\d{6}\b',
129 lambda m: br'%sduration=*.?????? (glob)' % m.group(1),
130 ),
131 (
132 br'DBG-DELTAS-SEARCH: delta-search-time=\d+.\d{6}',
133 br'DBG-DELTAS-SEARCH: delta-search-time=* (glob)',
125 ), 134 ),
126 ] 135 ]
127 136
128 # Various platform error strings, keyed on a common replacement string 137 # Various platform error strings, keyed on a common replacement string
129 _errors = { 138 _errors = {