summaryrefslogtreecommitdiff
path: root/regtest
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2013-12-06 13:24:47 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2013-12-06 13:24:47 +0100
commit24107ac47625438837d7c29053bff795f986a6bb (patch)
treeec02706984274a50cc7e1e6b1017e8df23766475 /regtest
parentf1c9993d58fb9d191a7b3e26bfcaf7b5eec5323d (diff)
regtest: Save checksum results sorted in md5 files
We are using os.listdir() to get the list of test results that returns files in arbitrary order.
Diffstat (limited to 'regtest')
-rw-r--r--regtest/backends/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/regtest/backends/__init__.py b/regtest/backends/__init__.py
index b57d8aa4..7d0ab8d7 100644
--- a/regtest/backends/__init__.py
+++ b/regtest/backends/__init__.py
@@ -67,7 +67,7 @@ class Backend:
path = os.path.join(refs_path, self._name)
md5_file = open(path + '.md5', 'w')
- for entry in os.listdir(refs_path):
+ for entry in sorted(os.listdir(refs_path)):
if not self.__should_have_checksum(entry):
continue
ref_path = os.path.join(refs_path, entry)