From 80d67357c2058ef7551e45ba8c4bfea3198b0570 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Fri, 9 Oct 2009 21:05:41 +0000 Subject: [PATCH] modify test to exit early on error --- testsuite/expect/test1.38 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testsuite/expect/test1.38 b/testsuite/expect/test1.38 index a1c4ef2d2cc..cb4178ab1e1 100755 --- a/testsuite/expect/test1.38 +++ b/testsuite/expect/test1.38 @@ -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" 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 -- GitLab