olcf / olcf-test-harness

OLCF Test Harness
https://olcf.github.io/olcf-test-harness/
Other
12 stars 4 forks source link

Feature Request: Improve handling of application exit code and job exit status #160

Open hagertnl opened 10 months ago

hagertnl commented 10 months ago

Currently, the exit code is not propagated to the scheduler job exit code. I would like a better standard for handling job exit codes. Currently, I trap the exit code with something like this:

$CMD
exit_code=$?
...
exit $exit_code

But if I do this, that means the harness's log_binary_execution.py cannot capture the exit code.