rostest results

asked 2021-04-07 07:26:25 -0500

Hello

I am trying to get the result of a rostest inside my python test script.

Example:

I am running the rostests on a github action and the issue is that the action would count as passed even if one of the rostests has faild. The command to run the tests is catkin_make run_tests_bo_ros_testing_rostest -j1 2>/dev/null

Is there any solution similar to this

results = rostest.unitrun(PKG, 'goals_tests', 'delocalize_goto', sys.argv)

if (results.wasSuccessful()):
    exit(0)
else:
    exit(1)
edit retag flag offensive close merge delete