tests: automatically glob the discovery timing information
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 12 Apr 2023 00:57:01 +0200
changeset 50428 59fda8516774
parent 50427 98fc949bec14
child 50429 771294224bf6
tests: automatically glob the discovery timing information Time is not stable in tests.
tests/common-pattern.py
--- 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