Added explicit output file name for pyunit tests, plus a check for their existence after the test runs, to catch crashing tests
This commit is contained in:
parent
cfcfb586df
commit
cdf7964164
|
@ -213,7 +213,7 @@ macro(_rosbuild_add_pyunit file)
|
|||
|
||||
# Create target for this test
|
||||
add_custom_target(pyunit_${_testname}
|
||||
COMMAND ${ARGN} python ${file}
|
||||
COMMAND ${ARGN} python ${file} --gtest_output=xml:$ENV{ROS_ROOT}/test/test_results/${PROJECT_NAME}/${_testname}.xml
|
||||
DEPENDS ${file}
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||
VERBATIM)
|
||||
|
|
|
@ -585,9 +585,7 @@ macro(rosbuild_add_pyunit file)
|
|||
add_custom_target(test)
|
||||
add_dependencies(test pyunit_${_testname})
|
||||
# Register check for test output
|
||||
# Can't do this, because the pyunit tests generate their own name
|
||||
# internally. TODO
|
||||
#_rosbuild_check_rostest_xml_result(pyunit_${_testname} $ENV{ROS_ROOT}/test/test_results/${PROJECT_NAME}/${_testname}.xml)
|
||||
_rosbuild_check_rostest_xml_result(pyunit_${_testname} $ENV{ROS_ROOT}/test/test_results/${PROJECT_NAME}/${_testname}.xml)
|
||||
endmacro(rosbuild_add_pyunit)
|
||||
|
||||
# A version of add_pyunit that checks a label against ROS_BUILD_TEST_LABEL
|
||||
|
|
Loading…
Reference in New Issue