[libgxps] regtest: Save checksum results sorted in md5 files



commit 6f25bcfa839e664bb37a3922f2efe8f0a54f3219
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Tue Jun 23 18:37:54 2015 +0200

    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.

 regtest/Test.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/regtest/Test.py b/regtest/Test.py
index 6f5374e..c442ddb 100644
--- a/regtest/Test.py
+++ b/regtest/Test.py
@@ -45,7 +45,7 @@ class Test:
         path = os.path.join(refs_path, 'md5')
         md5_file = open(path, 'w')
 
-        for entry in os.listdir(refs_path):
+        for entry in sorted(os.listdir(refs_path)):
             if not self.__should_have_checksum(entry):
                 continue
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]