ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A reading of the rostest.rosrun source code reveals that it is in fact overwriting the results file with each function call: http://docs.ros.org/indigo/api/rostest/html/rostest-pysrc.html#rosrun

rosunit.unitrun has a similar pattern and likely has the same flaw: http://docs.ros.org/indigo/api/rosunit/html/rosunit.pyunit-pysrc.html#unitrun

I think the best thing to do here is to split your tests into separate files. If this is a serious problem for you, you may want to consider filing a bug against rostest or submitting a patch which provides the behavior you need.