changeset 18788:05d544d17fa2

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.
author Simon Heimberg <simohe@besonet.ch>
date Thu, 21 Mar 2013 08:56:21 +0100
parents f56278a0a0c5
children fff3a8114510
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Wed Mar 20 13:40:06 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