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

Enable the setting of the exit code from moose #28639

Open
loganharbour opened this issue Sep 16, 2024 · 0 comments · May be fixed by #28640
Open

Enable the setting of the exit code from moose #28639

loganharbour opened this issue Sep 16, 2024 · 0 comments · May be fixed by #28640
Assignees
Labels
C: Framework T: task An enhancement to the software.

Comments

@loganharbour
Copy link
Member

Motivation

The --run option for running application tests is currently flawed. It only returns exit code 1 on failure, and does not pass the actual return code from the test harness.

Design

Add MooseEpp::exitCode() and use it when returning from main.

Capture the exit code when using --run and exit with that return code instead of using mooseError().

Impact

Will enable using --run with intermittent failures, because we can pass the true exit code from the test harness. Will also let others exit non-zero from moose without a mooseError.

@loganharbour loganharbour added C: Framework T: task An enhancement to the software. labels Sep 16, 2024
@loganharbour loganharbour self-assigned this Sep 16, 2024
loganharbour added a commit to loganharbour/moose that referenced this issue Sep 16, 2024
loganharbour added a commit to loganharbour/moose that referenced this issue Sep 16, 2024
loganharbour added a commit to loganharbour/moose that referenced this issue Sep 16, 2024
loganharbour added a commit to loganharbour/moose that referenced this issue Sep 16, 2024
loganharbour added a commit to loganharbour/moose that referenced this issue Sep 16, 2024
loganharbour added a commit to loganharbour/moose that referenced this issue Sep 16, 2024
loganharbour added a commit to loganharbour/moose that referenced this issue Sep 16, 2024
loganharbour added a commit to loganharbour/moose that referenced this issue Sep 16, 2024
@loganharbour loganharbour linked a pull request Sep 16, 2024 that will close this issue
lynnmunday added a commit to lynnmunday/isopod that referenced this issue Sep 19, 2024
lynnmunday added a commit to lynnmunday/blackbear that referenced this issue Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Framework T: task An enhancement to the software.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant