Mercurial > hg-stable
changeset 33430:21299e1fb446
test-paths: mask out JSON specific path differences for Windows
The backslashes in the local paths were being escaped with another backslash,
and $TESTTMP doesn't match against the double backslashed path. This doesn't
happen without the 'json' filter.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 13 Jul 2017 22:47:35 -0400 |
parents | 7a15cae3ec81 |
children | fd6eb444f2e1 |
files | tests/test-paths.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-paths.t Thu Jul 13 03:17:59 2017 +0900 +++ b/tests/test-paths.t Thu Jul 13 22:47:35 2017 -0400 @@ -119,8 +119,8 @@ (in JSON, it's a dict of dicts) - $ hg log -rnull -T '{peerpaths|json}\n' - {"dupe": {"pushurl": "https://example.com/dupe", "url": "$TESTTMP/b#tip"}, "expand": {"url": "$TESTTMP/a/$SOMETHING/bar"}} (glob) + $ hg log -rnull -T '{peerpaths|json}\n' | sed 's|\\\\|/|g' + {"dupe": {"pushurl": "https://example.com/dupe", "url": "$TESTTMP/b#tip"}, "expand": {"url": "$TESTTMP/a/$SOMETHING/bar"}} password should be masked in plain output, but not in machine-readable/template output: