From: Peter Eisentraut Date: Thu, 1 Aug 2019 15:59:40 +0000 (+0200) Subject: Fix shell syntax in test suite X-Git-Tag: pgbouncer_1_11_0~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5317824a46dfb0351fe86a13034a7a216bed207;p=pgbouncer Fix shell syntax in test suite Using return outside a function doesn't make sense. --- diff --git a/test/test.sh b/test/test.sh index 5ed8aca..62bc749 100755 --- a/test/test.sh +++ b/test/test.sh @@ -95,8 +95,8 @@ psql -X -p $PG_PORT -l | grep p0 > /dev/null || { } psql -X -p $PG_PORT -d p0 -c "select * from pg_user" | grep pswcheck > /dev/null || { - psql -X -o /dev/null -p $PG_PORT -c "create user pswcheck with superuser createdb password 'pgbouncer-check';" p0 || return 1 - psql -X -o /dev/null -p $PG_PORT -c "create user someuser with password 'anypasswd';" p0 || return 1 + psql -X -o /dev/null -p $PG_PORT -c "create user pswcheck with superuser createdb password 'pgbouncer-check';" p0 || exit 1 + psql -X -o /dev/null -p $PG_PORT -c "create user someuser with password 'anypasswd';" p0 || exit 1 } echo "Starting bouncer"