aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-03-24 17:23:39 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-03-24 17:23:39 +0000
commitdd0702a399ba1e1a8fe82bb7b42473b499523349 (patch)
tree031371cca7852198891ecb6c952177fcbc5016da /src
parent35411a878b50b545d2ceaa15c11015d858c83dda (diff)
downloadpostgresql-dd0702a399ba1e1a8fe82bb7b42473b499523349.tar.gz
postgresql-dd0702a399ba1e1a8fe82bb7b42473b499523349.zip
Fix python regression testing script to bail out early if language
creation fails ... no point in running the tests.
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