Skip to content

Add ignore exit code flag #490

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

Merged
merged 3 commits into from
Feb 15, 2025
Merged

Conversation

kaleidawave
Copy link
Contributor

Add ignore_exit_code flag so that iteration count can continue even if the process returned a non-zero exit code (which is common on linters / verifiers etc)

@@ -100,6 +100,10 @@ pub fn start_recording(

pids.push(child.id());

if process_launch_props.ignore_exit_code {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is right - you need to wait for the child process to finish before you launch the next iteration. Can you combine this check with the existing !exit_status.success() check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct, this condition should go after the wait call. Have updated 👍

Copy link
Owner

@mstange mstange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@mstange mstange marked this pull request as ready for review February 13, 2025 19:59
@mstange mstange enabled auto-merge February 13, 2025 19:59
@mstange mstange disabled auto-merge February 13, 2025 20:04
@kaleidawave
Copy link
Contributor Author

Have put in the fix for mac, so should be okay now

@mstange mstange merged commit 9700a37 into mstange:main Feb 15, 2025
15 checks passed
@mstange
Copy link
Owner

mstange commented Feb 15, 2025

Merged, thanks!

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.

2 participants