[PATCH] tests: try and scrub away IP addresses with $LOCALIP

Augie Fackler raf at durin42.com
Thu Nov 30 16:29:40 EST 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1511993262 18000
#      Wed Nov 29 17:07:42 2017 -0500
# Node ID c302e8e1948355a38128905db7c880ec2454e81b
# Parent  02e348000fb6eb411306d2c67c9c053351d189cc
tests: try and scrub away IP addresses with $LOCALIP

I'm not 100% sure this is sane, but it seems like a reasonable thing
to do...

diff --git a/tests/common-pattern.py b/tests/common-pattern.py
--- a/tests/common-pattern.py
+++ b/tests/common-pattern.py
@@ -33,7 +33,7 @@ substitutions = [
      br'$USUAL_BUNDLE2_CAPS$'
     ),
     # HTTP log dates
-    (br' - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "GET',
-     br' - - [$LOGDATE$] "GET'
+    (br'[0-9a-f.:-]+ - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "GET',
+     br'$LOCALIP - - [$LOGDATE$] "GET'
     ),
 ]


More information about the Mercurial-devel mailing list