Skip to content
Snippets Groups Projects
Commit 22e8ddc7 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1872 from MikeMcQuaid/improve_integration_test_failure_output

integration_command_test_case: improve fail output
parents 9f183be3 4d2201b8
No related branches found
No related tags found
No related merge requests found
......@@ -106,16 +106,20 @@ class IntegrationCommandTestCase < Homebrew::TestCase
def cmd(*args)
output = cmd_output(*args)
status = $?.exitstatus
puts "\n'brew #{args.join " "}' output: #{output}" if status.nonzero?
assert_equal 0, status
assert_equal 0, status, <<-EOS.undent
`brew #{args.join " "}` exited with non-zero status!
#{output}
EOS
output
end
def cmd_fail(*args)
output = cmd_output(*args)
status = $?.exitstatus
$stderr.puts "\n'brew #{args.join " "}'" if status.zero?
refute_equal 0, status
refute_equal 0, status, <<-EOS.undent
`brew #{args.join " "}` exited with zero status!
#{output}
EOS
output
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment