|
@@ -31,7 +31,7 @@ def test_execute_command_captures_output():
|
|
|
full_command = ['foo', 'bar']
|
|
|
expected_output = '[]'
|
|
|
flexmock(module.subprocess).should_receive('check_output').with_args(
|
|
|
- full_command, shell=False
|
|
|
+ full_command, stderr=module.subprocess.STDOUT, shell=False
|
|
|
).and_return(flexmock(decode=lambda: expected_output)).once()
|
|
|
|
|
|
output = module.execute_command(full_command, output_log_level=None)
|
|
@@ -43,7 +43,7 @@ def test_execute_command_captures_output_with_shell():
|
|
|
full_command = ['foo', 'bar']
|
|
|
expected_output = '[]'
|
|
|
flexmock(module.subprocess).should_receive('check_output').with_args(
|
|
|
- full_command, shell=True
|
|
|
+ full_command, stderr=module.subprocess.STDOUT, shell=True
|
|
|
).and_return(flexmock(decode=lambda: expected_output)).once()
|
|
|
|
|
|
output = module.execute_command(full_command, output_log_level=None, shell=True)
|