From 12c9a35d79e0525ebb6288af0cf5bc3c98e03bfb Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 29 Jul 2014 14:50:30 +0000 Subject: [PATCH] Honour verbosity flag on sql file load failure (see #2854) git-svn-id: http://svn.osgeo.org/postgis/trunk@12840 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/run_test.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/regress/run_test.pl b/regress/run_test.pl index 1fcd0301e..484d4eb52 100755 --- a/regress/run_test.pl +++ b/regress/run_test.pl @@ -1143,8 +1143,11 @@ sub load_sql_file my $cmd = "psql $psql_opts -Xf $file $DB >> $REGRESS_LOG 2>&1"; print " $file\n" if $VERBOSE; my $rv = system($cmd); - die "\nError encountered loading $file, see $REGRESS_LOG for details\n\n" - if $rv; + if ( $rv ) + { + fail "Error encountered loading $file", $REGRESS_LOG; + exit 1 + } } return 1; } -- 2.50.1