class ParallelTests::Test::Runner

def self.fetch_output(process, options)

read output of the process and print it in chunks
def self.fetch_output(process, options)
  all = ''
  while buffer = process.readpartial(1000000)
    all << buffer
    unless options[:serialize_stdout]
      $stdout.print buffer
      $stdout.flush
    end
  end rescue EOFError
  all
end