aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pl/plpython/test.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/pl/plpython/test.sh b/src/pl/plpython/test.sh
index 5cc677c33cd..facf29e2680 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