Skip to content
Snippets Groups Projects
Unverified Commit 115aafb9 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

formula_assertions: print output on assertion failed.

When doing `brew test --verbose` (as `brew test-bot` does) ensure that
the output is printed when an assertion fails to more easily debug the
test failure.
parent e4d520e8
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,9 @@ module Homebrew
output = `#{cmd}`
assert_equal result, $CHILD_STATUS.exitstatus
output
rescue Test::Unit::AssertionFailedError
puts output if Homebrew.args.verbose?
raise
end
# Returns the output of running the cmd with the optional input, and
......@@ -24,6 +27,9 @@ module Homebrew
end
assert_equal result, $CHILD_STATUS.exitstatus unless result.nil?
output
rescue Test::Unit::AssertionFailedError
puts output if Homebrew.args.verbose?
raise
end
end
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