From 0e996a775c866230ac5c4e1edc21d96398386378 Mon Sep 17 00:00:00 2001 From: Anderson Chauphan Date: Wed, 4 Dec 2024 17:17:16 -0600 Subject: [PATCH] Add creation of empty packageEnables and subprojects Add the creation of empty packageEnables.cmake and package_subproject_list.cmake files when `--skip-create-packageenables` argument is passed. This is due to SimpleTesting CTest drivers requiring these files to exist. packageEnables.cmake and package_subproject_list.cmake are created by get-changed-trilinos-packages.sh script which we do not always want to generate for cases such as Framework test line, where we do not want to spend extra compute resources building packages from changed files. We let the other PR builds handle that. Signed-off-by: Anderson Chauphan --- .../trilinosprhelpers/TrilinosPRConfigurationStandard.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/framework/pr_tools/trilinosprhelpers/TrilinosPRConfigurationStandard.py b/packages/framework/pr_tools/trilinosprhelpers/TrilinosPRConfigurationStandard.py index 401824ea8b6d..69f1ad653523 100644 --- a/packages/framework/pr_tools/trilinosprhelpers/TrilinosPRConfigurationStandard.py +++ b/packages/framework/pr_tools/trilinosprhelpers/TrilinosPRConfigurationStandard.py @@ -54,6 +54,15 @@ def execute_test(self): if not self.args.dry_run: gc.write_cmake_fragment() + if self.arg_skip_create_packageenables: + print("Optional --skip_create_packageenables found. " + + "Creating dummy packageEnables.cmake and package_subproject_list.cmake " + + "for CTest drivers.") + with open(self.arg_filename_packageenables, 'w'): + pass + with open(self.arg_filename_subprojects, 'w'): + pass + # Execute the call to ctest. verbosity_flag = "-VV" if "BUILD_NUMBER" in os.environ: