changeset 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 9db98b503596
children 7e954b08d129
files tests/common-pattern.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/common-pattern.py	Tue Nov 19 01:35:59 2024 +0100
+++ b/tests/common-pattern.py	Wed Dec 04 10:21:08 2024 +0100
@@ -123,6 +123,15 @@
         br'\belapsed time:  \d+.\d{6} seconds\b',
         br'elapsed time:  *.?????? seconds (glob)',
     ),
+    # delta find debug time
+    (
+        br'(DBG-DELTAS: .* - )duration=\d+\.\d{6}\b',
+        lambda m: br'%sduration=*.?????? (glob)' % m.group(1),
+    ),
+    (
+        br'DBG-DELTAS-SEARCH:     delta-search-time=\d+.\d{6}',
+        br'DBG-DELTAS-SEARCH:     delta-search-time=* (glob)',
+    ),
 ]
 
 # Various platform error strings, keyed on a common replacement string