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

@@ -19,6 +19,15 @@ module Producer::Core
sh.apply
expect(output).to eq "#{command_args}\n"
end
context 'when content is written to standard error' do
let(:command) { "echo #{command_args} >&2" }
it 'writes errors to given error stream' do
sh.apply
expect(error_output).to eq "#{command_args}\n"
end
end
end
end
end