Skip to content

Commit 03731c5

Browse files
committed
BUG: ExtensionBuildSystemTest: Improve tests robustness
This commit updates the configuration of py_cmake_slicer_extensions_index_build_* tests to ensure the env. variable SLICER_EXTENSION_MANAGER_SKIP_MIDAS_UPLOAD is ignored. It ensures that test will pass on system when midas client is not used. git-svn-id: http://svn.slicer.org/Slicer4/trunk@27942 3bd1e089-480b-0410-8dfb-8563597acbee
1 parent 2cc8160 commit 03731c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Extensions/CMake/Testing/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ function(add_slicer_extensions_index_test testname)
4747

4848
add_test(
4949
NAME py_${prefix}${testname}
50-
COMMAND ${PYTHON_EXECUTABLE} -c "${code}" ${CMAKE_CFG_INTDIR}
50+
# Test assume the CMake based midas client is used.
51+
# See Extensions/CMake/SlicerExtensionPackageAndUploadTarget.cmake
52+
COMMAND ${CMAKE_COMMAND} -E env --unset=SLICER_EXTENSION_MANAGER_SKIP_MIDAS_UPLOAD
53+
${PYTHON_EXECUTABLE} -c "${code}" ${CMAKE_CFG_INTDIR}
5154
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
5255
)
5356

0 commit comments

Comments
 (0)