tests: fix previously accidentally matching regexes in test-touch.t stable
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 30 Nov 2017 21:31:14 -0800
branchstable
changeset 3210 df8d535216af
parent 3209 a05e46239146
child 3212 6ffd0c36ccc1
child 3226 5dfe4e5cf9e4
tests: fix previously accidentally matching regexes in test-touch.t Before Mercurial commit 6d5718e39657 (run-tests: make "| foo (re)" not match everything, 2017-11-29), regexes like "| foo", which are common in graphlog output, would incorrectly match anything. After that commit, they match as they should, meaning that either "" or " foo" would match, but not a "| foo". This commit fixes the test by replacing the "|" by "." rather than escaping with "\|" since that would make the graph harder to read.
tests/test-touch.t
--- a/tests/test-touch.t	Thu Nov 30 12:09:21 2017 -0500
+++ b/tests/test-touch.t	Thu Nov 30 21:31:14 2017 -0800
@@ -112,17 +112,17 @@
   $ hg log -G --hidden
   @  11:[0-9a-f]{12} gna1 (re)
   |
-  | o  10:[0-9a-f]{12} move (re)
+  . o  10:[0-9a-f]{12} move (re)
   | |
-  | x  9:[0-9a-f]{12} gna1 (re)
+  . x  9:[0-9a-f]{12} gna1 (re)
   |/
   o  8:[0-9a-f]{12} d (re)
   |
   o  7:[0-9a-f]{12} c (re)
   |
-  | x  6:[0-9a-f]{12} d (re)
+  . x  6:[0-9a-f]{12} d (re)
   | |
-  | x  5:[0-9a-f]{12} c (re)
+  . x  5:[0-9a-f]{12} c (re)
   |/
   o  4:[0-9a-f]{12} (re)