Do not buffer output for tests

This commit is contained in:
Mitchell Hashimoto 2011-11-27 11:16:24 -07:00
parent b133b0a357
commit 0279cc1edf
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,10 @@ require "support/config"
require "support/virtualbox" require "support/virtualbox"
require "support/matchers/match_output" require "support/matchers/match_output"
# Do not buffer output
$stdout.sync = true
$stderr.sync = true
# If VirtualBox is currently running, fail. # If VirtualBox is currently running, fail.
if Acceptance::VirtualBox.find_vboxsvc if Acceptance::VirtualBox.find_vboxsvc
$stderr.puts "VirtualBox must be closed and remain closed for the duration of the tests." $stderr.puts "VirtualBox must be closed and remain closed for the duration of the tests."

View File

@ -13,6 +13,10 @@ begin
rescue LoadError rescue LoadError
end end
# Do not buffer output for tests
$stdout.sync = true
$stderr.sync = true
# Set the home directory to some temporary directory # Set the home directory to some temporary directory
ENV["HOME"] = Vagrant.source_root.join("test", "tmp", "home").to_s ENV["HOME"] = Vagrant.source_root.join("test", "tmp", "home").to_s