[postgis-tickets] [SCM] PostGIS branch master updated. 3.4.0rc1-582-g898ff011f

git at osgeo.org git at osgeo.org
Mon Sep 18 13:50:01 PDT 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  898ff011fd30598f283847c6695ab8f1273d465b (commit)
      from  4f79c38c41e6b660e053670149fe0875a31c9f64 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 898ff011fd30598f283847c6695ab8f1273d465b
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Sep 18 22:49:41 2023 +0200

    [run_test.pl] Simplify load_sql_file logic

diff --git a/regress/run_test.pl b/regress/run_test.pl
index 88d5de3c6..6424a2bdc 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -1525,12 +1525,6 @@ sub load_sql_file
 	my $file = shift;
 	my $strict = shift;
 
-	if ( $strict && ! -e $file )
-	{
-		fail "Unable to find $file";
-		return 0;
-	}
-
 	if ( -e $file )
 	{
 		# ON_ERROR_STOP is used by psql to return non-0 on an error
@@ -1548,6 +1542,12 @@ sub load_sql_file
 			return 0;
 		}
 	}
+	elsif ( $strict )
+	{
+		fail "Unable to find $file";
+		return 0;
+	}
+
 	return 1;
 }
 

-----------------------------------------------------------------------

Summary of changes:
 regress/run_test.pl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list