From 159ba9b012415ec5bd1c446c66a02702a7909225 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 7 Sep 2016 08:42:00 +0100 Subject: [PATCH] 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. --- Library/Homebrew/dev-cmd/test-bot.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb index 89397df449..bf332ac256 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