Do not buffer output for tests
This commit is contained in:
parent
b133b0a357
commit
0279cc1edf
|
@ -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."
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue