[postgis-tickets] r17882 - Remove view testing from upgrade objects testing

Paul Ramsey pramsey at cleverelephant.ca
Mon Oct 7 03:58:12 PDT 2019


Author: pramsey
Date: 2019-10-07 15:58:12 -0700 (Mon, 07 Oct 2019)
New Revision: 17882

Modified:
   trunk/regress/run_test.pl
Log:
Remove view testing from upgrade objects testing
References #4386


Modified: trunk/regress/run_test.pl
===================================================================
--- trunk/regress/run_test.pl	2019-10-07 22:49:45 UTC (rev 17881)
+++ trunk/regress/run_test.pl	2019-10-07 22:58:12 UTC (rev 17882)
@@ -309,14 +309,14 @@
     exit(1);
   }
 
-  my $query = "create view upgrade_view_test as ";
-  $query .= "select st_union(g1) from upgrade_test;";
-  my $ret = sql($query);
-  unless ( $ret =~ /^CREATE/ ) {
-    `dropdb $DB`;
-    print "\nSomething went wrong creating upgrade_view_test view: $ret.\n";
-    exit(1);
-  }
+  # my $query = "create view upgrade_view_test as ";
+  # $query .= "select st_union(g1) from upgrade_test;";
+  # my $ret = sql($query);
+  # unless ( $ret =~ /^CREATE/ ) {
+  #   `dropdb $DB`;
+  #   print "\nSomething went wrong creating upgrade_view_test view: $ret.\n";
+  #   exit(1);
+  # }
 
   if ( $OPT_WITH_RASTER )
   {
@@ -347,12 +347,12 @@
 {
   # TODO: allow passing the "upgrade-cleanup" script via commandline
 
-  my $ret = sql("drop view upgrade_view_test;");
-  unless ( $ret =~ /^DROP/ ) {
-    `dropdb $DB`;
-    print "\nSomething went wrong dropping spatial view: $ret.\n";
-    exit(1);
-  }
+  # my $ret = sql("drop view upgrade_view_test;");
+  # unless ( $ret =~ /^DROP/ ) {
+  #   `dropdb $DB`;
+  #   print "\nSomething went wrong dropping spatial view: $ret.\n";
+  #   exit(1);
+  # }
 
   my $ret = sql("drop table upgrade_test;");
   unless ( $ret =~ /^DROP/ ) {



More information about the postgis-tickets mailing list