Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ci/teamcity/Delft3D/linux/scripts/hpc-smoke/common_utilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
# This file contains shared functions used by prepare_all_models.sh and run_all_models.sh

find_dimr_directories() {
find . -type f \( -name "dimr.xml" -o -name "dimr_config.xml" \) -exec dirname {} \; | sort -u
find . -type f \( -name "dimr.xml" -o -name "dimr_config.xml" \) -exec dirname {} \; | sort -u | while read dir; do
dir_name=$(basename "$dir")
parent_dir=$(dirname "$dir")
# Skip non-_work directory when a _work sibling exists (prefer _work for execution)
if [[ "$dir_name" != *_work ]] && [ -d "$parent_dir/${dir_name}_work" ]; then
continue
fi
echo "$dir"
done
}

is_supported_platform() {
Expand Down
6 changes: 5 additions & 1 deletion test/deltares_testbench/src/suite/test_set_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,11 @@ def __process_test_case_locations(self, config: TestCaseConfig, logger: ILogger)
local_path = self.__build_local_path(config, location)
self.__download_location_with_retries(config, location, remote_path, local_path, logger)
if location.type == PathType.INPUT:
self.__copy_to_work_folder(Path(local_path), logger)
work_path = Path(local_path).with_name(f"{Path(local_path).name}_work")
if work_path.exists() and self.settings.command_line_settings.skip_run:
logger.debug(f"Preserving existing work directory: {work_path}")
else:
self.__copy_to_work_folder(Path(local_path), logger)

self.__set_absolute_paths(config, location.type, local_path)

Expand Down
Loading