Skip to content
Snippets Groups Projects
Commit d6784ea3 authored by Julien Michel's avatar Julien Michel
Browse files

TEST: Use the MPIEXEC variable instead of hardcoded command name. Safer on...

TEST: Use the MPIEXEC variable instead of hardcoded command name. Safer on plateforms where mpirun is not in PATH
parent 53d05a6e
No related branches found
No related tags found
No related merge requests found
......@@ -216,5 +216,5 @@ function(otb_add_test_mpi)
list(APPEND ARGS ${arg})
endforeach()
set (test_parameters -np ${TEST_MPI_NBPROCS} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${TEST_MPI_COMMAND} ${ARGS})
otb_add_test(NAME ${TEST_MPI_NAME} COMMAND "mpirun" ${test_parameters})
otb_add_test(NAME ${TEST_MPI_NAME} COMMAND ${MPIEXEC} ${test_parameters})
endfunction()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment