Skip to content

Commit 6be5a4b

Browse files
committed
More test debugging output
1 parent 30a41ee commit 6be5a4b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

test/acceptance/helper.rb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,14 @@ def root
262262
end
263263

264264
def system(command)
265-
Kernel.system("#{command} > /dev/null") or raise "command failed: #{command}"
266-
end
265+
if ENV["SPRING_DEBUG"]
266+
puts "$ #{command}\n"
267+
else
268+
command = "#{command} > /dev/null"
269+
end
267270

268-
def bundle
269-
return if @bundled
270-
application.bundle
271-
@bundled = true
271+
Kernel.system(command) or raise "command failed: #{command}"
272+
puts if ENV["SPRING_DEBUG"]
272273
end
273274

274275
# Sporadic SSL errors keep causing test failures so there are anti-SSL workarounds here
@@ -312,10 +313,10 @@ def generate_if_missing
312313
def install_spring
313314
return if @installed
314315

315-
system("gem build spring.gemspec 2>/dev/null")
316+
system("gem build spring.gemspec 2>&1")
316317
application.run! "gem install ../../../spring-#{Spring::VERSION}.gem", timeout: nil
317318

318-
bundle
319+
application.bundle
319320

320321
FileUtils.rm_rf application.path("bin")
321322

0 commit comments

Comments
 (0)