Skip to content
Snippets Groups Projects
Commit 001c9baa authored by Jack Nagel's avatar Jack Nagel
Browse files

Don't record the test if initialization fails

When Test.new raises an ArgumentError, nil will be pushed onto the tests
array, and then methods will be called on nil when we iterate over the
tests while building the XML output.
parent bf53f3fd
No related branches found
No related tags found
No related merge requests found
......@@ -609,9 +609,9 @@ module Homebrew
ofail e.message
else
test_error = !test.run
tests << test
end
any_errors ||= test_error
tests << test
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