changeset 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 98fc949bec14
children 771294224bf6
files tests/common-pattern.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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