[PATCH 4 of 4] test-static-http: fix broken path sorting on Windows

Matt Harbison mharbison72 at gmail.com
Sun Oct 29 01:09:45 EDT 2017


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1509249192 14400
#      Sat Oct 28 23:53:12 2017 -0400
# Branch stable
# Node ID 8f5cbf8bdf417a1f3c23a790b610aa9d408332a5
# Parent  ba57926f2b4ccc2ded732b60c7da40544d524eb3
test-static-http: fix broken path sorting on Windows

Some of the paths output had '\', throwing off the order.  Globbing in the test
didn't help, because `sort` sees the pre-globbed path.

diff --git a/tests/test-static-http.t b/tests/test-static-http.t
--- a/tests/test-static-http.t
+++ b/tests/test-static-http.t
@@ -218,7 +218,7 @@
 
 List of files accessed over HTTP:
 
-  $ cat server.log | sed -n -e 's|.*GET \(/[^ ]*\).*|\1|p' | sort -u
+  $ cat server.log | sed -n -e 's|\\|/|g' -e 's|.*GET \(/[^ ]*\).*|\1|p' | sort -u
   /.hg/bookmarks
   /.hg/bookmarks.current
   /.hg/cache/hgtagsfnodes1


More information about the Mercurial-devel mailing list