From: Cédric Aguerre Date: Mon, 17 Feb 2020 13:50:25 +0000 (+0100) Subject: Sort tests by name X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1301c4173318c1dc64ad9ac7e88e0890ebaad095;p=modules%2Fyacs.git Sort tests by name --- diff --git a/bin/appli_gen.py b/bin/appli_gen.py index 98acd79f8..f42b4dbcd 100755 --- a/bin/appli_gen.py +++ b/bin/appli_gen.py @@ -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: