test-bot: ensure install_passed is always defined
This commit is contained in:
parent
f3035333fb
commit
362da26ff6
@ -568,13 +568,12 @@ module Homebrew
|
|||||||
|
|
||||||
install_args << canonical_formula_name
|
install_args << canonical_formula_name
|
||||||
# Don't care about e.g. bottle failures for dependencies.
|
# Don't care about e.g. bottle failures for dependencies.
|
||||||
|
install_passed = false
|
||||||
run_as_not_developer do
|
run_as_not_developer do
|
||||||
if !ARGV.include?("--fast") || formula_bottled
|
if !ARGV.include?("--fast") || formula_bottled
|
||||||
test "brew", "install", "--only-dependencies", *install_args unless dependencies.empty?
|
test "brew", "install", "--only-dependencies", *install_args unless dependencies.empty?
|
||||||
test "brew", "install", *install_args
|
test "brew", "install", *install_args
|
||||||
install_passed = steps.last.passed?
|
install_passed = steps.last.passed?
|
||||||
else
|
|
||||||
install_passed = false
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
audit_args = [canonical_formula_name]
|
audit_args = [canonical_formula_name]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user