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

Add ignore exit code flag #490

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kaleidawave
Copy link

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
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
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