Forward standard error stream from remote execution
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user