aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-11-10 19:25:05 -0600
committerJack Nagel2014-11-10 19:28:17 -0600
commit75c8fa6de11c94ff0da4b91fde1969f182ee13ba (patch)
tree665b45ee3739dbed03a6d7609164497adc6a8dab /Library/Homebrew/cmd
parent5b75b873224c8804419085194934842ccb7fd262 (diff)
downloadhomebrew-75c8fa6de11c94ff0da4b91fde1969f182ee13ba.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/Homebrew/cmd')
-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