aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-10 19:25:05 -0600
committerJack Nagel2014-11-10 19:28:17 -0600
commit001c9baa7f2434430bdc9fea8557c599336a5ad7 (patch)
tree18c29a7400aa0dae13a47fdca2cf9c033b9d3c42 /Library
parentbf53f3fd16341528115408d43fa2ba28a4ba6f24 (diff)
downloadbrew-001c9baa7f2434430bdc9fea8557c599336a5ad7.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 7bc3da121..4c10c1e26 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -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