# HG changeset patch # User Simon Heimberg # Date 1363852581 -3600 # Node ID cefcbbc5502c4533e2d4efc23a92e6301db09617 # Parent d29df508e187c655feb92959bbaca969ec622398 run-tests: only sort files when not given as argument os.listdir returns the files in any order. This has to be sorted. But when given as argument, the user should be allowed to set any order. This restores the behaviour before 9848a94e2a. [ original upstream message ] diff -r d29df508e187 -r cefcbbc5502c tests/run-tests.py --- a/tests/run-tests.py Tue Mar 12 10:37:48 2013 -0700 +++ b/tests/run-tests.py Thu Mar 21 08:56:21 2013 +0100 @@ -1244,8 +1244,7 @@ checktools() if len(args) == 0: - args = os.listdir(".") - args.sort() + args = sorted(os.listdir(".")) tests = args