]> granicus.if.org Git - postgis/commitdiff
Allow existance of databases including name of target test db
authorSandro Santilli <strk@keybit.net>
Fri, 20 Nov 2015 09:50:59 +0000 (09:50 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 20 Nov 2015 09:50:59 +0000 (09:50 +0000)
.. otherwise you get a weird "database postgis_reg already exists"
when only having a database like "postgis_reg_22" (for example) ..

git-svn-id: http://svn.osgeo.org/postgis/trunk@14405 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test.pl

index 0eaf562b6cdae0fb3a8b212df8b1fc30119050d8..aa1944e25b94c2430d5aacb1d7093c7beec5f31c 100755 (executable)
@@ -209,7 +209,7 @@ print "TMPDIR is $TMPDIR\n";
 # 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 )