changeset 35389:acff41957b34

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 09 Dec 2017 23:46:44 -0500
parents 6c28956ba2d4
children 14fd435763ee
files tests/list-tree.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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, '/'))))