Commit 3dfe81ae authored by Mikaël Salson's avatar Mikaël Salson

testRunner.py: Make sure test order is reproducible

Files can be loaded in any order depending on how glob traverses the directories.
We now sort the files first to have a reproducible order.

Fixes #3682
parent e948d000
......@@ -316,7 +316,7 @@ doc_test_files = glob.glob(path)
print(len(doc_test_files)," controller files with possible doctests found.")
# get all files with tests
test_files = glob.glob('applications/'+appname+'/tests/unit/*/*.py')
test_files = sorted(glob.glob('applications/'+appname+'/tests/unit/*/*.py'))
if not len(test_files):
raise Exception("No files found for app: " + sys.argv[2])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment