Commit 5e684690 authored by Manuel Grizonnet's avatar Manuel Grizonnet

TEST: remove lib directory before testing feature branches

parent 5d3e109d
......@@ -701,8 +701,14 @@ while(NOT dashboard_done)
set(dashboard_current_branch ${branch})
set(CTEST_BUILD_NAME ${branch}-${ORIGINAL_CTEST_BUILD_NAME})
set(CTEST_GIT_UPDATE_CUSTOM ${CMAKE_COMMAND} -D GIT_COMMAND:PATH=${CTEST_GIT_COMMAND} -D TESTED_BRANCH:STRING=${branch} -P ${_git_updater_script})
#remove testing directory
file(REMOVE_RECURSE ${CTEST_BINARY_DIRECTORY}/Testing/Temporary)
file(MAKE_DIRECTORY ${CTEST_BINARY_DIRECTORY}/Testing/Temporary)
#building feature branches in the same directory can lead to multiple versions of OTB libraries in ${CTEST_BINARY_DIRECTORY}/lib/
#remove lib directories to avoid segfault (trigger re-linking for otb libraries)
file(REMOVE_RECURSE ${CTEST_BINARY_DIRECTORY}/lib)
file(MAKE_DIRECTORY ${CTEST_BINARY_DIRECTORY}/lib)
message("Run dashboard for ${branch}")
run_dashboard()
endforeach()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment