Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ReadyToTest() usage in event handler #665

Merged

Conversation

nnmm
Copy link
Contributor

@nnmm nnmm commented Oct 6, 2022

This fixes #578.

The LaunchDescription is searched for a ReadyToTest action recursively with the describe{_conditional}_sub_entities() functions of LaunchDescriptionEntity. For a RegisterEventHandler action, this calls the describe() function of the event handler, but the default implementation returns an empty list. So this PR overrides the describe() function for the OnActionEventBase class, which I think covers all the event handlers where you'd want to use ReadyToTest: OnProcessExit, OnProcessIO, OnProcessStart, OnExecutionComplete.

Apologies in advance for probably not using the right testing idioms, I'm not so familiar with the code base.

Signed-off-by: Nikolai Morin <nikolai.morin@apex.ai>
@nnmm nnmm force-pushed the 578-event-triggered-ready-to-test branch from 08b4a40 to e571d7f Compare October 6, 2022 12:12
@nnmm
Copy link
Contributor Author

nnmm commented Oct 22, 2022

@clalancette Could you suggest a reviewer?

@vinnnyr
Copy link

vinnnyr commented Nov 30, 2022

Wow this looks really useful. I was just needing to do this (signal ReadyToTest once a test asset download has been complete).

@nnmm
Copy link
Contributor Author

nnmm commented Dec 1, 2022

Thanks! @cottsay could you review this?

@methylDragon
Copy link
Contributor

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@methylDragon
Copy link
Contributor

Thank you for the contribution! 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot use event-triggered ReadyToTest
3 participants