comparison tests/common-pattern.py @ 50428: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
comparison
equal deleted inserted replaced
50427:98fc949bec14 50428:59fda8516774
119 br'transferred (\S+?) KB in \S+? seconds \(.+?/sec\)(?: \(glob\))?(.*)', 119 br'transferred (\S+?) KB in \S+? seconds \(.+?/sec\)(?: \(glob\))?(.*)',
120 lambda m: ( 120 lambda m: (
121 br'transferred %s KB in * seconds (* */sec) (glob)%s' 121 br'transferred %s KB in * seconds (* */sec) (glob)%s'
122 % (m.group(1), m.group(2)) 122 % (m.group(1), m.group(2))
123 ), 123 ),
124 ),
125 # `discovery debug output
126 (
127 br'\b(\d+) total queries in \d.\d\d\d\ds\b',
128 lambda m: (br'%s total queries in *.????s (glob)' % m.group(1)),
124 ), 129 ),
125 ] 130 ]
126 131
127 # Various platform error strings, keyed on a common replacement string 132 # Various platform error strings, keyed on a common replacement string
128 _errors = { 133 _errors = {