aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb
index ff1771974..601e511c2 100644
--- a/Library/Homebrew/test/test_integration_cmds.rb
+++ b/Library/Homebrew/test/test_integration_cmds.rb
@@ -65,13 +65,17 @@ class IntegrationCommandTests < Homebrew::TestCase
def cmd(*args)
output = cmd_output(*args)
- assert_equal 0, $?.exitstatus
+ status = $?.exitstatus
+ puts "\n#{output}" if status != 0
+ assert_equal 0, status
output
end
def cmd_fail(*args)
output = cmd_output(*args)
- assert_equal 1, $?.exitstatus
+ status = $?.exitstatus
+ $stderr.puts "\n#{output}" if status != 1
+ assert_equal 1, status
output
end