[postgis-tickets] r16736 - [run_test.pl] More debugging outputs

Sandro Santilli strk at kbt.io
Tue Sep 11 02:18:58 PDT 2018


Author: strk
Date: 2018-09-11 02:18:58 -0700 (Tue, 11 Sep 2018)
New Revision: 16736

Modified:
   trunk/regress/run_test.pl
Log:
[run_test.pl] More debugging outputs

Modified: trunk/regress/run_test.pl
===================================================================
--- trunk/regress/run_test.pl	2018-09-11 09:18:53 UTC (rev 16735)
+++ trunk/regress/run_test.pl	2018-09-11 09:18:58 UTC (rev 16736)
@@ -1319,6 +1319,9 @@
 		if ( $OPT_UPGRADE_FROM ) {
 			$sql .= " VERSION '" . $OPT_UPGRADE_FROM . "'";
 		}
+
+		print "Preparing db '${DB}' using: ${sql}\n";
+
  		$cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1";
 		$rv = system($cmd);
 		if ( $rv ) {
@@ -1487,6 +1490,9 @@
         # upgrade of postgis must have unpackaged raster, so
         # we create it again here
         my $sql = "CREATE EXTENSION postgis_raster VERSION '${nextver}' FROM unpackaged";
+
+        print "Upgrading PostGIS Raster in '${DB}' using: ${sql}\n" ;
+
         my $cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1";
         my $rv = system($cmd);
         if ( $rv ) {
@@ -1497,6 +1503,9 @@
       else
       {
         my $sql = "ALTER EXTENSION postgis_raster UPDATE TO '${nextver}'";
+
+        print "Upgrading PostGIS Raster in '${DB}' using: ${sql}\n" ;
+
         my $cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1";
         my $rv = system($cmd);
         if ( $rv ) {
@@ -1514,7 +1523,7 @@
 				$sql = "CREATE EXTENSION postgis_topology VERSION '${nextver}' FROM unpackaged";
 			}
 
-			print "Upgrading PostGIS Topology in '${DB}' using: ${sql}\n" ;
+      print "Upgrading PostGIS Topology in '${DB}' using: ${sql}\n";
 
       my $cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1";
       my $rv = system($cmd);



More information about the postgis-tickets mailing list