]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Sort tests by name
authorCédric Aguerre <cedric.aguerre@edf.fr>
Mon, 17 Feb 2020 13:50:25 +0000 (14:50 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Mon, 17 Feb 2020 13:50:25 +0000 (14:50 +0100)
bin/appli_gen.py

index 98acd79f8327e9c3c8886c5979a6a6d225628217..f42b4dbcdf13cd61104ac8e1dc1ff38eb4091172 100755 (executable)
@@ -255,6 +255,13 @@ def install(prefix, config_file, verbose=0):
             pass
         pass
 
+    # Sort test labels by name in generated CTestTestfile.cmake
+    with open(ctest_file) as f:
+        lines = f.readlines()
+    lines.sort()
+    with open(ctest_file, "w") as f:
+        f.write("".join(lines))
+
     # Generate CTestCustom.cmake to handle long output
     ctest_custom = os.path.join(home_dir, 'bin', 'salome', 'test', "CTestCustom.cmake")
     with open(ctest_custom, 'w') as f: