[postgis-tickets] r17975 - [run_test] Fix search_path for topology tests

Sandro Santilli strk at kbt.io
Fri Oct 18 09:20:50 PDT 2019


Author: strk
Date: 2019-10-18 09:20:50 -0700 (Fri, 18 Oct 2019)
New Revision: 17975

Modified:
   trunk/regress/run_test.pl
Log:
[run_test] Fix search_path for topology tests

Modified: trunk/regress/run_test.pl
===================================================================
--- trunk/regress/run_test.pl	2019-10-18 16:08:02 UTC (rev 17974)
+++ trunk/regress/run_test.pl	2019-10-18 16:20:50 UTC (rev 17975)
@@ -775,7 +775,7 @@
           . " -v \"scriptdir=$scriptdir\""
           . " -v \"regdir=$REGDIR\""
           . " -v \"schema=$OPT_SCHEMA.\""
-          . " -c \"SET search_path TO public,$OPT_SCHEMA\""
+          . " -c \"SET search_path TO public,$OPT_SCHEMA,topology\""
           . " -tXAq $DB -f $sql > $outfile 2>&1";
 	my $rv = system($cmd);
 
@@ -1341,7 +1341,7 @@
 		# ON_ERROR_STOP is used by psql to return non-0 on an error
 		my $psql_opts = "--no-psqlrc --variable ON_ERROR_STOP=true";
 		my $cmd = "psql $psql_opts -c 'CREATE SCHEMA IF NOT EXISTS $OPT_SCHEMA' ";
-		$cmd .= "-c 'SET search_path TO $OPT_SCHEMA'";
+		$cmd .= "-c 'SET search_path TO $OPT_SCHEMA,topology'";
 		$cmd .= " -Xf $file $DB >> $REGRESS_LOG 2>&1";
 		print "  $file\n" if $VERBOSE;
 		my $rv = system($cmd);



More information about the postgis-tickets mailing list