diff --git a/test/shell/run.sh b/test/shell/run.sh index 20e3e8f..039feb3 100755 --- a/test/shell/run.sh +++ b/test/shell/run.sh @@ -1,8 +1,9 @@ #!/bin/bash - set -e + errors=0 - results=$(psql -f error_tests.sql ) - [ "$?" -ne 0 ] || { - echo "Test returned error code $?, this is what we want" 2>&1 + results=$(psql -v ON_ERROR_STOP=1 -f error_tests.sql ) + if [ "$?" -ne 0 ]; then exit 0 - } + else + exit 1 + fi