fixed: pyaction tests for super build

properly set python path in tests to find the opm_embedded module
This commit is contained in:
Arne Morten Kvarving 2025-01-31 13:34:04 +01:00
parent 6bdbb6abdf
commit b0c1a63537
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