From 1301c4173318c1dc64ad9ac7e88e0890ebaad095 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Mon, 17 Feb 2020 14:50:25 +0100 Subject: [PATCH] Sort tests by name --- bin/appli_gen.py | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- 2.39.2