[postgis-tickets] r14403 - Allow existance of databases including name of target test db
Sandro Santilli
strk at keybit.net
Fri Nov 20 01:49:32 PST 2015
Author: strk
Date: 2015-11-20 01:49:31 -0800 (Fri, 20 Nov 2015)
New Revision: 14403
Modified:
branches/2.1/regress/run_test.pl
Log:
Allow existance of databases including name of target test db
.. otherwise you get a weird "database postgis_reg already exists"
when only having a database like "postgis_reg_22" (for example) ..
Modified: branches/2.1/regress/run_test.pl
===================================================================
--- branches/2.1/regress/run_test.pl 2015-11-18 20:50:17 UTC (rev 14402)
+++ branches/2.1/regress/run_test.pl 2015-11-20 09:49:31 UTC (rev 14403)
@@ -191,7 +191,7 @@
# Prepare the database
##################################################################
-my @dblist = grep(/$DB/, split(/\n/, `psql -Xl`));
+my @dblist = grep(/\b$DB\b/, split(/\n/, `psql -Xl`));
my $dbcount = @dblist;
if ( $dbcount == 0 )
More information about the postgis-tickets
mailing list