Permalink
Browse files

Report properly on errors in FileTextArrayFDW.pm.

  • Loading branch information...
1 parent 07abea6 commit 2b84b0e461dfbc45bd6c67b59eb8db69dd327d77 @adunstan adunstan committed Jan 24, 2013
Showing with 17 additions and 0 deletions.
  1. +17 −0 PGBuild/Modules/FileTextArrayFDW.pm
View
17 PGBuild/Modules/FileTextArrayFDW.pm
@@ -166,6 +166,23 @@ sub installcheck
my @log = `cd $self->{where} && $cmd 2>&1`;
my $status = $? >>8;
+ my $installdir = "$self->{buildroot}/$self->{pgbranch}/inst";
+ my @logfiles =
+ ("$self->{where}/regression.diffs","$installdir/logfile");
+ foreach my $logfile(@logfiles)
+ {
+ last unless $status;
+ next unless (-e $logfile );
+ push(@log,"\n\n================== $logfile ==================\n");
+ my $handle;
+ open($handle,$logfile);
+ while(<$handle>)
+ {
+ push(@log,$_);
+ }
+ close($handle);
+ }
+
main::writelog("$MODULE-installcheck-$locale",\@log);
print "======== installcheck ($locale) log ===========\n",@log
if ($verbose > 1);

0 comments on commit 2b84b0e

Please sign in to comment.