aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-07 08:42:00 +0100
committerMike McQuaid2016-09-07 08:42:00 +0100
commit159ba9b012415ec5bd1c446c66a02702a7909225 (patch)
treee906620ae1661ef9ceffe968a53abf5a2b8ba452 /Library
parent4d123e6227ec5dc34a0f0a4001f7093340877258 (diff)
downloadbrew-159ba9b012415ec5bd1c446c66a02702a7909225.tar.bz2
test-bot: put exception, retry on missing formula.
This will be useful in debugging (and recovering from) the situation where sometimes formulae can't be found when specifying multiple on the command-line.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/test-bot.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb
index 89397df44..bf332ac25 100644
--- a/Library/Homebrew/dev-cmd/test-bot.rb
+++ b/Library/Homebrew/dev-cmd/test-bot.rb
@@ -247,11 +247,13 @@ module Homebrew
def safe_formula_canonical_name(formula_name)
Formulary.factory(formula_name).full_name
- rescue TapFormulaUnavailableError => e
+ rescue TapFormulaUnavailableError, FormulaUnavailableError => e
raise if e.tap.installed?
test "brew", "tap", e.tap.name
retry unless steps.last.failed?
- rescue FormulaUnavailableError, TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError => e
+ onoe e
+ puts e.backtrace
+ rescue TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError => e
onoe e
puts e.backtrace
end