[cmake] try to fix working dir for python tests
@@ -642,7 +642,7 @@ endif()
# Declaration of a siconos test based on python bindings
macro(add_python_test test_name test_file)
add_test(${test_name} ${PYTHON_EXECUTABLE} ${TESTS_RUNNER} "${pytest_opt}" ${DRIVE_LETTER}${test_file})
- # WORKING_DIRECTORY ${SICONOS_SWIG_ROOT_DIR}/tests)
+ set_tests_properties(${test_name} PROPERTIES WORKING_DIRECTORY ${SICONOS_SWIG_ROOT_DIR}/tests)
set_tests_properties(${test_name} PROPERTIES FAIL_REGULAR_EXPRESSION "FAILURE;Exception;[^x]failed;ERROR;Assertion")
set_tests_properties(${test_name} PROPERTIES ENVIRONMENT "PYTHONPATH=$ENV{PYTHONPATH}:${CMAKE_BINARY_DIR}/wrap")
set_tests_properties(${test_name} PROPERTIES ENVIRONMENT LDLIBPATH)
