projects
/
postgis
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
192c2b3
)
Honour verbosity flag on sql file load failure (see #2854)
author
Sandro Santilli
<strk@keybit.net>
Tue, 29 Jul 2014 14:50:30 +0000
(14:50 +0000)
committer
Sandro Santilli
<strk@keybit.net>
Tue, 29 Jul 2014 14:50:30 +0000
(14:50 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12840
b70326c6
-7e19-0410-871a-
916f4a2858ee
regress/run_test.pl
patch
|
blob
|
history
diff --git
a/regress/run_test.pl
b/regress/run_test.pl
index 1fcd0301ec2ab304c2429d1c353f88a00f0a145b..484d4eb529548c9c7b5cddb2955c15cc77c8d51b 100755
(executable)
--- 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;
}