]> granicus.if.org Git - postgis/commitdiff
Drop database when function loads fail in regression tests. (#77)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 7 Nov 2009 01:47:02 +0000 (01:47 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 7 Nov 2009 01:47:02 +0000 (01:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4764 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test

index ffd528bf50a99706476237b0f27e686971341f34..4b9932b13cab152ceade38d8e98355b2420a04db 100755 (executable)
@@ -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