Merge pull request #5938 from akva2/fix_pyaction_tests

fixed: pyaction tests for super build
This commit is contained in:
Bård Skaflestad
2025-01-31 14:53:31 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -143,6 +143,10 @@ function(add_test_compareSeparateECLFiles)
SIMULATOR ${PARAM_SIMULATOR}
TESTNAME ${PARAM_CASENAME}
PROCESSORS ${MPI_PROCS})
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.22)
set_tests_properties(${PARAM_PREFIX}_${PARAM_SIMULATOR}+${PARAM_CASENAME} PROPERTIES
ENVIRONMENT_MODIFICATION PYTHONPATH=path_list_append:${opm-common_DIR}/python)
endif()
endfunction()
###########################################################################

View File

@@ -787,6 +787,10 @@ if (opm-common_EMBEDDED_PYTHON)
REL_TOL ${rel_tol}
DIR udq_actionx
TEST_ARGS --solver-max-time-step-in-days=10)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.22)
set_tests_properties(compareECLFiles_flow+PYACTION_WCONPROD PROPERTIES
ENVIRONMENT_MODIFICATION PYTHONPATH=path_list_append:${opm-common_DIR}/python)
endif()
endif()
add_test_compareECLFiles(CASENAME multxyz_model2