test-debugextensions: sanitize JSON output for Windows
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 01 Oct 2015 21:24:10 -0400
changeset 26430 1f8208a7277e
parent 26429 703d331c44ac
child 26431 46984a5308a0
test-debugextensions: sanitize JSON output for Windows Windows is printing a double backslash, which isn't handled by (glob): --- c:/Users/Matt/Projects/hg/tests/test-debugextensions.t +++ c:/Users/Matt/Projects/hg/tests/test-debugextensions.t.err @@ -47,7 +47,7 @@ { "buglink": "", "name": "color", - "source": "*/hgext/color.pyc", (glob) + "source": "c:\\Users\\Matt\\Projects\\hg\\hgext\\color.pyc", "testedwith": "internal" }, {
tests/test-debugextensions.t
--- a/tests/test-debugextensions.t	Thu Oct 01 21:10:38 2015 -0400
+++ b/tests/test-debugextensions.t	Thu Oct 01 21:24:10 2015 -0400
@@ -42,7 +42,7 @@
     location: */hgext/rebase.pyc (glob)
     tested with: internal
 
-  $ hg debugextensions -Tjson
+  $ hg debugextensions -Tjson | sed 's|\\\\|/|g'
   [
    {
     "buglink": "",