[SCM] PostGIS branch master updated. 3.6.0rc2-458-g8b5d974cb

git at osgeo.org git at osgeo.org
Wed Apr 15 00:57:57 PDT 2026


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  8b5d974cb7f4376c5ebc9936b5ba93aaf826452c (commit)
      from  cfb81e6a5bf761b6603a6425e689d82d5f3b046c (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 8b5d974cb7f4376c5ebc9936b5ba93aaf826452c
Author: Sandro Santilli <strk at kbt.io>
Date:   Wed Apr 15 09:57:19 2026 +0200

    Add proper --help support in run_test.pl
    
    So you can get the usage string on stdout when
    that's what you're asking for

diff --git a/regress/run_test.pl b/regress/run_test.pl
index c3b5d0827..2e1c625f5 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -95,10 +95,12 @@ my $OPT_UPGRADE_PATH = '';
 our $OPT_UPGRADE_FROM = '';
 my $OPT_UPGRADE_TO = '';
 our $VERBOSE = 0;
+my $ASKED_FOR_HELP = 0;
 our $OPT_SCHEMA = 'public';
 
 GetOptions (
 	'verbose+' => \$VERBOSE,
+	'help' => \$ASKED_FOR_HELP,
 	'clean' => \$OPT_CLEAN,
 	'nodrop' => \$OPT_NODROP,
 	'upgrade+' => \$OPT_UPGRADE,
@@ -124,9 +126,16 @@ GetOptions (
 	'after-restore-script=s' => \@OPT_HOOK_AFTER_RESTORE
 	);
 
+if ( $ASKED_FOR_HELP > 0 )
+{
+    usage(*STDOUT{IO});
+    exit 0;
+}
+
 if ( @ARGV < 1 )
 {
-	usage();
+    usage(*STDERR{IO});
+    exit 1;
 }
 
 sub findOrDie
@@ -709,9 +718,9 @@ exit($FAIL);
 
 sub usage
 {
-	die qq{
-Usage: $0 [<options>] <testname> [<testname>]
+	print { shift } qq{Usage: $0 [<options>] <testname> [<testname>]
 Options:
+  --help          print these instructionss
   -v, --verbose   be verbose about failures
   --nocreate      do not create the regression database on start
   --upgrade       upgrade db before running tests, can be passed

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

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list