[postgis-tickets] r17974 - [run_test] Do not omit CREATE/UPDATE returns from sql() func

Sandro Santilli strk at kbt.io
Fri Oct 18 09:08:02 PDT 2019


Author: strk
Date: 2019-10-18 09:08:02 -0700 (Fri, 18 Oct 2019)
New Revision: 17974

Modified:
   trunk/regress/run_test.pl
Log:
[run_test] Do not omit CREATE/UPDATE returns from sql() func

Modified: trunk/regress/run_test.pl
===================================================================
--- trunk/regress/run_test.pl	2019-10-18 16:07:50 UTC (rev 17973)
+++ trunk/regress/run_test.pl	2019-10-18 16:08:02 UTC (rev 17974)
@@ -714,7 +714,7 @@
 sub sql
 {
 	my $sql = shift;
-	my $result = `psql -qtXA -d $DB -c 'SET search_path TO public,$OPT_SCHEMA' -c "$sql"`;
+	my $result = `psql -tXA -d $DB -c 'SET search_path TO public,$OPT_SCHEMA' -c "$sql" | sed '/^SET\$/d'`;
 	$result =~ s/[\n\r]*$//;
 	$result;
 }



More information about the postgis-tickets mailing list