From f5d4cee4ee2234bffc9f1481b294050908f6b326 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 20 Nov 2015 09:50:59 +0000 Subject: [PATCH] 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) .. git-svn-id: http://svn.osgeo.org/postgis/trunk@14405 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/run_test.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regress/run_test.pl b/regress/run_test.pl index 0eaf562b6..aa1944e25 100755 --- a/regress/run_test.pl +++ b/regress/run_test.pl @@ -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 ) -- 2.40.0