Forward standard error stream from remote execution

This commit is contained in:
Thibault Jouan
2014-07-21 12:45:57 +00:00
parent a033e19583
commit db91eb06cd
14 changed files with 93 additions and 17 deletions

View File

@@ -106,6 +106,16 @@ module Producer::Core
expect(output.string).to eq arguments
end
it 'writes command error output to provided error output' do
error_output = StringIO.new
story_with_new_channel do |ch|
ch.sends_exec command
ch.gets_extended_data arguments
end
remote.execute command, output, error_output
expect(error_output.string).to eq arguments
end
context 'when command execution fails' do
before do
story_with_new_channel do |ch|