Skip to content

Commit

Permalink
Print the contant of "setup.log" on failure
Browse files Browse the repository at this point in the history
... for convenience
  • Loading branch information
larskanis committed Nov 3, 2023
1 parent babfda4 commit 2218ebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ def initialize( name, port: 54321, postgresql_conf: '' )
@unix_socket = @test_dir.to_s
rescue => err
$stderr.puts "%p during test setup: %s" % [ err.class, err.message ]
$stderr.puts "See #{@logfile} for details."
$stderr.puts "See #{@logfile} for details:"
$stderr.puts File.read(@logfile) if File.exist?(@logfile)
$stderr.puts err.backtrace if $DEBUG
fail
end
Expand Down

0 comments on commit 2218ebf

Please sign in to comment.