Skip to content
Snippets Groups Projects
Commit 80d67357 authored by Moe Jette's avatar Moe Jette
Browse files

modify test to exit early on error

parent 7c2332c5
No related branches found
No related tags found
No related merge requests found
...@@ -113,6 +113,11 @@ if {[expr $match_run + $match_wait + $match_term] != 3} { ...@@ -113,6 +113,11 @@ if {[expr $match_run + $match_wait + $match_term] != 3} {
send_user "\nFAILURE: srun failed to properly process SIGINT matches was $match_run $match_wait $match_term\n" send_user "\nFAILURE: srun failed to properly process SIGINT matches was $match_run $match_wait $match_term\n"
set exit_code 1 set exit_code 1
} }
if {$exit_code == 0} {
send_user "\nSo far, so good\n\n"
} else {
exit $exit_code
}
# #
# Spawn initial program via srun and use SIGINT to kill # Spawn initial program via srun and use SIGINT to kill
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment