From b2ea487bda3152134baf9d7cc3a94699e34c86fd Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Tue, 3 Feb 2015 21:16:16 +0100 Subject: [PATCH] Regression test suite: Test files in proper lexicographic order instead of relying on OS directory iteration order. This ensures failures are listed in the same order. --- test/regression/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regression/run.py b/test/regression/run.py index 427f48d47..73172cf04 100644 --- a/test/regression/run.py +++ b/test/regression/run.py @@ -165,7 +165,7 @@ def process_dir(d, outfile_results, zipin, result): shellparams = {'stdout':outfile_results, 'stderr':outfile_results, 'shell':False} print("Processing directory " + d) - for f in os.listdir(d): + for f in sorted(os.listdir(d)): fullpath = os.path.join(d, f) if os.path.isdir(fullpath) and not f == ".svn": process_dir(fullpath, outfile_results, zipin, result)