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

Sandro Santilli strk at keybit.net
Tue Feb 9 01:01:07 PST 2016


Author: strk
Date: 2016-02-09 01:01:07 -0800 (Tue, 09 Feb 2016)
New Revision: 14635

Modified:
   tags/2.2.0/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: tags/2.2.0/regress/run_test.pl
===================================================================
--- tags/2.2.0/regress/run_test.pl	2016-02-09 09:01:00 UTC (rev 14634)
+++ tags/2.2.0/regress/run_test.pl	2016-02-09 09:01:07 UTC (rev 14635)
@@ -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