diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-24 17:23:34 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-24 17:23:34 +0000 |
| commit | 7e1c6f177e904e6b46a22db60b92b70761fb2c47 (patch) | |
| tree | 7cc5d44309d6e30ece6867a883391d1f388010dd /src | |
| parent | 00aa8ed47a1d42a799eb7e92936d4272417f83b0 (diff) | |
| download | postgresql-7e1c6f177e904e6b46a22db60b92b70761fb2c47.tar.gz | |
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-x | src/pl/plpython/test.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/pl/plpython/test.sh b/src/pl/plpython/test.sh index 5cc677c33c..facf29e268 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 |
