From 2218ebf0b5a6057e74cd4d628e0b20011b8c0aff Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Wed, 1 Nov 2023 14:22:26 +0100 Subject: [PATCH] Print the contant of "setup.log" on failure ... for convenience --- spec/helpers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/helpers.rb b/spec/helpers.rb index f141c9d39..017585fbe 100644 --- a/spec/helpers.rb +++ b/spec/helpers.rb @@ -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