Patchwork [05,of,11] test-pattern: substitute the HTTP log timestamp too

login
register
mail settings
Submitter Boris Feld
Date Nov. 13, 2017, 11:04 a.m.
Message ID <bacfe13eb9b21a13c814.1510571095@FB>
Download mbox | patch
Permalink /patch/25505/
State Superseded
Headers show

Comments

Boris Feld - Nov. 13, 2017, 11:04 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 bacfe13eb9b21a13c8144ae4d2337415ea93f2e3
# Parent  57145dddd16a59c40bd83187bdb2a1615710a6cf
# EXP-Topic better-substitute
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r bacfe13eb9b2
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'
+    ),
 ]