Patchwork [5,of,6,V2] test-pattern: substitute the HTTP log timestamp too

login
register
mail settings
Submitter Boris Feld
Date Nov. 13, 2017, 11:11 a.m.
Message ID <c06ed80fc1063905dc6a.1510571479@FB>
Download mbox | patch
Permalink /patch/25516/
State Accepted
Headers show

Comments

Boris Feld - Nov. 13, 2017, 11:11 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1509866633 -3600
#      Sun Nov 05 08:23:53 2017 +0100
# Node ID c06ed80fc1063905dc6a711fc32c88d5913b0db6
# Parent  8f0e6aaf04b6bdd6535b6bc03008538c95085105
# EXP-Topic better-substitute
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r c06ed80fc106
test-pattern: substitute the HTTP log timestamp too

We add a pattern matching the infamous timestamp in http log. Now, we should be
able to have change appears in https log without having to re-glob the whole
thing over and over.

Patch

diff --git a/tests/common-pattern.py b/tests/common-pattern.py
--- a/tests/common-pattern.py
+++ b/tests/common-pattern.py
@@ -32,4 +32,8 @@  substitutions = [
      # (replacement patterns)
      br'$USUAL_BUNDLE2_CAPS$'
     ),
+    # HTTP log dates
+    (br' - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "GET',
+     br' - - [$LOGDATE$] "GET'
+    ),
 ]