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?