Removed accidentally added check against ROS_BUILD_TEST_LABEL from rosbuild_add_rostest
This commit is contained in:
parent
a09180b15b
commit
a59c052c6a
|
@ -544,12 +544,9 @@ endmacro(rosbuild_add_gtest_future)
|
||||||
macro(rosbuild_add_rostest file)
|
macro(rosbuild_add_rostest file)
|
||||||
string(REPLACE "/" "_" _testname ${file})
|
string(REPLACE "/" "_" _testname ${file})
|
||||||
_rosbuild_add_rostest(${file})
|
_rosbuild_add_rostest(${file})
|
||||||
# Check for agreement of optional label and environment variable
|
# Redeclaration of target is to workaround bug in 2.4.6
|
||||||
if("${ARGN}" STREQUAL "$ENV{ROS_BUILD_TEST_LABEL}")
|
add_custom_target(test)
|
||||||
# Redeclaration of target is to workaround bug in 2.4.6
|
add_dependencies(test rostest_${_testname})
|
||||||
add_custom_target(test)
|
|
||||||
add_dependencies(test rostest_${_testname})
|
|
||||||
endif("${ARGN}" STREQUAL "$ENV{ROS_BUILD_TEST_LABEL}")
|
|
||||||
_rosbuild_check_rostest_result(rostest_${_testname} ${PROJECT_NAME} ${file})
|
_rosbuild_check_rostest_result(rostest_${_testname} ${PROJECT_NAME} ${file})
|
||||||
endmacro(rosbuild_add_rostest)
|
endmacro(rosbuild_add_rostest)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue