Closed nnmm closed 1 year ago
@clalancette Could you suggest a reviewer?
Wow this looks really useful. I was just needing to do this (signal ReadyToTest once a test asset download has been complete).
Thanks! @cottsay could you review this?
Thank you for the contribution! :fire:
This fixes https://github.com/ros2/launch/issues/578.
The
LaunchDescription
is searched for aReadyToTest
action recursively with thedescribe{_conditional}_sub_entities()
functions ofLaunchDescriptionEntity
. For aRegisterEventHandler
action, this calls thedescribe()
function of the event handler, but the default implementation returns an empty list. So this PR overrides thedescribe()
function for theOnActionEventBase
class, which I think covers all the event handlers where you'd want to useReadyToTest
:OnProcessExit
,OnProcessIO
,OnProcessStart
,OnExecutionComplete
.Apologies in advance for probably not using the right testing idioms, I'm not so familiar with the code base.