Permalink
Browse files

Add a check for buildroot length to avoid cryptic failures.

pg_upgrade uses the cwd as the socket dir and this can cause problems.
  • Loading branch information...
1 parent 62558b9 commit 8a97eff63ea6e3a338ca5488e52182bbfa2694ab @adunstan adunstan committed Nov 29, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 PGBuild/Modules/TestUpgrade.pm
@@ -35,6 +35,10 @@ sub setup
return unless ($branch eq 'HEAD' or $branch ge 'REL9_2');
+ die "overly long build root $buildroot will cause upgrade problems - try something shorter than 46 chars"
+ if (length($buildroot) > 46);
+
+
# could even set up several of these (e.g. for different branches)
my $self = {
buildroot => $buildroot,

0 comments on commit 8a97eff

Please sign in to comment.