tests: stabilize the sorted output of list-tree.py on Windows
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 09 Dec 2017 23:46:44 -0500
changeset 35380 acff41957b34
parent 35379 6c28956ba2d4
child 35381 14fd435763ee
tests: stabilize the sorted output of list-tree.py on Windows The test-largefiles-misc.t test was moving 'dir2\' before 'dir\' because while '/' precedes most of the printable ASCII characters, '\' comes after numbers and capital letters, among other symbols.
tests/list-tree.py
--- a/tests/list-tree.py	Sun Dec 10 19:43:35 2017 +0900
+++ b/tests/list-tree.py	Sat Dec 09 23:46:44 2017 -0500
@@ -24,4 +24,4 @@
         else:
             yield p
 
-print('\n'.join(sorted(gather())))
+print('\n'.join(sorted(gather(), key=lambda x: x.replace(os.path.sep, '/'))))