diff --git a/lib/aruba/platforms/command_monitor.rb b/lib/aruba/platforms/command_monitor.rb index 5b6365665..bdd9081ce 100644 --- a/lib/aruba/platforms/command_monitor.rb +++ b/lib/aruba/platforms/command_monitor.rb @@ -134,7 +134,7 @@ def stderr_from(cmd) def all_stdout registered_commands.each(&:stop) - registered_commands.each_with_object("") { |e, a| a << e.stdout } + registered_commands.each_with_object("".dup) { |e, a| a << e.stdout } end # @deprecated @@ -145,7 +145,7 @@ def all_stdout def all_stderr registered_commands.each(&:stop) - registered_commands.each_with_object("") { |e, a| a << e.stderr } + registered_commands.each_with_object("".dup) { |e, a| a << e.stderr } end # @deprecated