lib/hydra/master.rb in justinf-hydra-0.23.6 vs lib/hydra/master.rb in justinf-hydra-0.23.7

- old
+ new

@@ -2,10 +2,11 @@ require 'open3' require 'hydra/tmpdir' require 'hydra/proxy_config' require 'erb' require 'yaml' +require 'hydra/threadsafe_io' module Hydra #:nodoc: # Hydra class responsible for delegate work down to workers. # # The Master is run once for any given testing session. @@ -33,9 +34,12 @@ # * :verbose # * Set to true to see lots of Hydra output (for debugging) # * :autosort # * Set to false to disable automatic sorting by historical run-time per file def initialize(opts = { }) + + $stdout = ThreadsafeIO.new($stdout) + opts.stringify_keys! config_file = opts.delete('config') { nil } if config_file begin