Browse files

COMP: Ensure application test written in python run serially

Hopefully this will help prevent the factory from crashing
when running the tests.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21334 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
1 parent b53074a commit f670b3ae1414cbd4d0231e9e935723a72dd25ba5 @jcfr committed Nov 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 CMake/SlicerMacroPythonTesting.cmake
View
2 CMake/SlicerMacroPythonTesting.cmake
@@ -33,6 +33,7 @@ macro(SLICER_ADD_PYTHON_TEST)
--ignore-slicerrc ${Slicer_ADDITIONAL_LAUNCHER_SETTINGS} ${MY_SLICER_ARGS}
--python-script ${CMAKE_CURRENT_SOURCE_DIR}/${MY_SCRIPT} ${MY_SCRIPT_ARGS}
)
+ set_property(TEST py_${MY_TESTNAME_PREFIX}${test_name} PROPERTY RUN_SERIAL TRUE)
endmacro()
macro(SLICER_ADD_PYTHON_UNITTEST)
@@ -54,4 +55,5 @@ macro(SLICER_ADD_PYTHON_UNITTEST)
--python-code "import slicer.testing; slicer.testing.runUnitTest(['${CMAKE_CURRENT_BINARY_DIR}', '${_script_source_dir}'], '${test_name}')"
${MY_SLICER_ARGS}
)
+ set_property(TEST py_${MY_TESTNAME_PREFIX}${test_name} PROPERTY RUN_SERIAL TRUE)
endmacro()

0 comments on commit f670b3a

Please sign in to comment.