diff --git a/Library/Homebrew/cmd/test.rb b/Library/Homebrew/cmd/test.rb index 1fdfb5dbe8..2bc0107cbd 100644 --- a/Library/Homebrew/cmd/test.rb +++ b/Library/Homebrew/cmd/test.rb @@ -11,17 +11,17 @@ module Homebrew ARGV.resolved_formulae.each do |f| # Cannot test uninstalled formulae unless f.installed? - ofail "Testing requires the latest version of #{f.name}" + ofail "Testing requires the latest version of #{f.full_name}" next end # Cannot test formulae without a test method unless f.test_defined? - ofail "#{f.name} defines no test" + ofail "#{f.full_name} defines no test" next end - puts "Testing #{f.name}" + puts "Testing #{f.full_name}" env = ENV.to_hash @@ -48,10 +48,10 @@ module Homebrew end end rescue Assertions::FailedAssertion => e - ofail "#{f.name}: failed" + ofail "#{f.full_name}: failed" puts e.message rescue Exception => e - ofail "#{f.name}: failed" + ofail "#{f.full_name}: failed" puts e, e.backtrace ensure ENV.replace(env)