Permalink
Browse files

Do not buffer output for tests

  • Loading branch information...
1 parent b133b0a commit 0279cc1edf360d18d0ee123989d410397e6bedf2 @mitchellh mitchellh committed Nov 27, 2011
Showing with 8 additions and 0 deletions.
  1. +4 −0 test/acceptance/base.rb
  2. +4 −0 test/unit/test_helper.rb
@@ -13,6 +13,10 @@
require "support/virtualbox"
require "support/matchers/match_output"
+# Do not buffer output
+$stdout.sync = true
+$stderr.sync = true
+
# If VirtualBox is currently running, fail.
if Acceptance::VirtualBox.find_vboxsvc
$stderr.puts "VirtualBox must be closed and remain closed for the duration of the tests."
@@ -13,6 +13,10 @@
rescue LoadError
end
+# Do not buffer output for tests
+$stdout.sync = true
+$stderr.sync = true
+
# Set the home directory to some temporary directory
ENV["HOME"] = Vagrant.source_root.join("test", "tmp", "home").to_s

0 comments on commit 0279cc1

Please sign in to comment.