# HG changeset patch # User Simon Heimberg # Date 2013-03-21 07:56:21 # Node ID 05d544d17fa29c28d47483ae829b1a1c93ac4bd4 # Parent f56278a0a0c56fe0c6c02ef8e23dbe0cadb9df69 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. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1244,8 +1244,7 @@ def main(): checktools() if len(args) == 0: - args = os.listdir(".") - args.sort() + args = sorted(os.listdir(".")) tests = args