[postgis-tickets] r14405 - Allow existance of databases including name of target test db

Sandro Santilli strk at keybit.net
Fri Nov 20 01:51:00 PST 2015


Author: strk
Date: 2015-11-20 01:50:59 -0800 (Fri, 20 Nov 2015)
New Revision: 14405

Modified:
   trunk/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: trunk/regress/run_test.pl
===================================================================
--- trunk/regress/run_test.pl	2015-11-20 09:49:54 UTC (rev 14404)
+++ trunk/regress/run_test.pl	2015-11-20 09:50:59 UTC (rev 14405)
@@ -209,7 +209,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