Add message to the exception raised when tests return false
This commit is contained in:
parent
4bdfb27d9f
commit
7f7742c2b6
@ -35,7 +35,7 @@ module Homebrew
|
|||||||
begin
|
begin
|
||||||
# tests can also return false to indicate failure
|
# tests can also return false to indicate failure
|
||||||
Timeout::timeout TEST_TIMEOUT_SECONDS do
|
Timeout::timeout TEST_TIMEOUT_SECONDS do
|
||||||
raise if f.run_test == false
|
raise "test returned false" if f.run_test == false
|
||||||
end
|
end
|
||||||
rescue Assertions::FailedAssertion => e
|
rescue Assertions::FailedAssertion => e
|
||||||
ofail "#{f.name}: failed"
|
ofail "#{f.name}: failed"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user