[postgis-tickets] r16894 - [run_test.pl] honour -v upon postgis extension drop failure

Sandro Santilli strk at kbt.io
Sun Oct 14 06:38:16 PDT 2018


Author: strk
Date: 2018-10-14 06:38:16 -0700 (Sun, 14 Oct 2018)
New Revision: 16894

Modified:
   trunk/regress/run_test.pl
Log:
[run_test.pl] honour -v upon postgis extension drop failure

Modified: trunk/regress/run_test.pl
===================================================================
--- trunk/regress/run_test.pl	2018-10-14 07:57:22 UTC (rev 16893)
+++ trunk/regress/run_test.pl	2018-10-14 13:38:16 UTC (rev 16894)
@@ -1640,8 +1640,10 @@
 
     $cmd = "psql $psql_opts -c \"DROP EXTENSION postgis\" $DB >> $REGRESS_LOG 2>&1";
     $rv = system($cmd);
-  	die "\nError encountered dropping EXTENSION POSTGIS, see $REGRESS_LOG for details\n\n"
-  	    if $rv;
+    if ( $rv ) {
+        fail "Error encountered dropping EXTENSION POSTGIS", $REGRESS_LOG;
+        die;
+    }
 
     return $ok;
 }



More information about the postgis-tickets mailing list