From: Paul Ramsey Date: Sat, 7 Nov 2009 01:47:02 +0000 (+0000) Subject: Drop database when function loads fail in regression tests. (#77) X-Git-Tag: 1.5.0b1~275 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4b40a910d57c3145d17e0a97005432df462d2a0;p=postgis Drop database when function loads fail in regression tests. (#77) git-svn-id: http://svn.osgeo.org/postgis/trunk@4764 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/run_test b/regress/run_test index ffd528bf5..4b9932b13 100755 --- a/regress/run_test +++ b/regress/run_test @@ -415,13 +415,11 @@ fi libver=`${PSQL} -tAc "select postgis_lib_version()" "${DB}"` if [ -z "$libver" ]; then + dropdb "${DB}" echo echo " Something went wrong (no postgis installed in ${DB})." if [ -z "$db_exists" ]; then echo " For details, check ${TMPDIR}/regress_log" - else - echo " Try dropping the database, it will be recreated" \ - " on next run." fi echo exit 1