How does rostest work with catkin?
The camera_info_manager package uses rostest to launch a ROS graph for unit testing.
Launching it explicitly works:
$ rostest camera_info_manager unit_test.test
But, if I run the test in a catkin build, it fails to start the rostest master. It hangs, waiting for me to start roscore by hand. After that, it completes the test successfully.
$ make run_tests
[ 42%] Built target camera_calibration_parsers
[ 57%] Built target camera_info_manager
[ 71%] Built target gtest
[ 85%] Built target gtest_main
[100%] Built target unit_test
[100%] Built target clean_test_results
[100%] Built target tests
-- run_tests.py: execute commands
/home/joq/ros/hydro/devel/lib/camera_info_manager/unit_test --gtest_output=xml:/home/joq/ros/hydro/build/test_results/camera_info_manager/gtest-unit_test.xml
[ERROR] [1359843932.846640561]: [registerPublisher] Failed to contact master at [vision-4.local:11311]. Retrying...
How is this supposed to work, now?