[postgis-tickets] [SCM] PostGIS branch main updated. 3.2.0rc1-3-g4f7552e7e

git at osgeo.org git at osgeo.org
Mon Dec 13 05:36:30 PST 2021


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, main has been updated
       via  4f7552e7eff77f23985c4833695ad9931a241a6d (commit)
      from  bc96772506ecc1ff7c1945491292e4ce21672755 (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 4f7552e7eff77f23985c4833695ad9931a241a6d
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Dec 13 14:34:48 2021 +0100

    run_test.pl support for interative shell (use `-` as testname)

diff --git a/regress/run_test.pl b/regress/run_test.pl
index a7372b275..f5128262f 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -39,6 +39,9 @@ BEGIN {
 #
 #  Run the <testname>.sql script
 #  Check output against <testname>_expected
+#
+#  Use `-` as the testname to drop into an interactive shell
+#
 ##################################################################
 
 ##################################################################
@@ -389,6 +392,16 @@ foreach $TEST (@ARGV)
 	my $TEST_OBJ_COUNT_POST;
 	my $TEST_START_TIME;
 
+	if ( "${TEST}" eq '-' )
+	{
+		print "-- Entering interactive shell --\n";
+		# TODO: add more variables?
+		my $cmd = "psql -q -v \"regdir=$REGDIR\"";
+		my $rv = system($cmd);
+		print "-- Moving on with tests, if any --\n";
+		next;
+	}
+
 	# catch a common mistake (strip trailing .sql)
 	$TEST =~ s/.sql$//;
 

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

Summary of changes:
 regress/run_test.pl | 13 +++++++++++++
 1 file changed, 13 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list