diff --git a/src/pl/plpython/test.sh b/src/pl/plpython/test.sh index 5cc677c33cd5f42599168a59b3e0e2a67a357a09..facf29e2680fd52fe0227687461e38f0f048eb1c 100755 --- a/src/pl/plpython/test.sh +++ b/src/pl/plpython/test.sh @@ -4,15 +4,24 @@ DBNAME=pltest echo -n "*** Destroy $DBNAME." dropdb $DBNAME > test.log 2>&1 +# drop failure is ok... echo " Done. ***" echo -n "*** Create $DBNAME." -createdb $DBNAME >> test.log 2>&1 -echo " Done. ***" +if createdb $DBNAME >> test.log 2>&1 ; then + echo " Done. ***" +else + echo " Failed! See test.log. ***" + exit 1 +fi echo -n "*** Create plpython." -createlang plpythonu $DBNAME >> test.log 2>&1 -echo " Done. ***" +if createlang plpythonu $DBNAME >> test.log 2>&1 ; then + echo " Done. ***" +else + echo " Failed! See test.log. ***" + exit 1 +fi echo -n "*** Create tables" psql -q $DBNAME < plpython_schema.sql >> test.log 2>&1