lib/jcukeforker/worker.rb in jcukeforker-0.2.7 vs lib/jcukeforker/worker.rb in jcukeforker-0.2.8
- old
+ new
@@ -102,20 +102,20 @@
end
def execute_cucumber
FileUtils.mkdir_p(out) unless File.exist? out
- $stdout.reopen stdout
- $stderr.reopen stderr
+ STDOUT.reopen stdout, 'a'
+ STDERR.reopen stderr, 'a'
begin
Cucumber::Cli::Main.execute args
rescue SystemExit => e
@status = e.success?
end
- $stdout.flush
- $stderr.flush
+ STDOUT.flush
+ STDERR.flush
@status
end
end
end