From 00212e5445f055747697a5e11d865e8c83d1db96 Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Tue, 26 Mar 2019 15:28:27 -0600 Subject: [PATCH] fixed run_test scripts --- tests/general/run_tests.sh | 5 ++++- tests/unit/run_tests.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/general/run_tests.sh b/tests/general/run_tests.sh index fb69322ac14..63d89e56092 100755 --- a/tests/general/run_tests.sh +++ b/tests/general/run_tests.sh @@ -23,7 +23,10 @@ for TEST in $PIO_TESTS do success1=false echo "running ${TEST}" - (mpiexec -n 4 ./${TEST} && success1=true) || break + mpiexec -n 4 ./${TEST} && success1=true + if test $success1 = false; then + break + fi done # Did we succeed? diff --git a/tests/unit/run_tests.sh b/tests/unit/run_tests.sh index da38b2dbae2..0f7c61ee178 100755 --- a/tests/unit/run_tests.sh +++ b/tests/unit/run_tests.sh @@ -17,7 +17,10 @@ for TEST in $PIO_TESTS do success1=false echo "running ${TEST}" - (mpiexec -n 4 ./${TEST} && success1=true) || break + mpiexec -n 4 ./${TEST} && success1=true + if test $success1 = false; then + break + fi done # Did we succeed?