Fix type errors in test.
This commit is contained in:
parent
38ec7b684d
commit
650ec514c1
@ -65,6 +65,9 @@ module Homebrew
|
|||||||
|
|
||||||
sig { returns(T.nilable(T::Boolean)) }
|
sig { returns(T.nilable(T::Boolean)) }
|
||||||
def ignore_dependencies?; end
|
def ignore_dependencies?; end
|
||||||
|
|
||||||
|
sig { returns(T.nilable(T::Boolean)) }
|
||||||
|
def keep_tmp?; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -30,13 +30,13 @@ begin
|
|||||||
raise "cannot kill child processes without `pkill`, please install!" unless which("pkill")
|
raise "cannot kill child processes without `pkill`, please install!" unless which("pkill")
|
||||||
end
|
end
|
||||||
|
|
||||||
formula = args.named.to_resolved_formulae.first
|
formula = T.must(args.named.to_resolved_formulae.first)
|
||||||
formula.extend(Homebrew::Assertions)
|
formula.extend(Homebrew::Assertions)
|
||||||
formula.extend(Homebrew::FreePort)
|
formula.extend(Homebrew::FreePort)
|
||||||
formula.extend(Debrew::Formula) if args.debug?
|
formula.extend(Debrew::Formula) if args.debug?
|
||||||
|
|
||||||
ENV.extend(Stdenv)
|
ENV.extend(Stdenv)
|
||||||
ENV.setup_build_environment(formula: formula)
|
T.cast(ENV, Stdenv).setup_build_environment(formula: formula)
|
||||||
|
|
||||||
# tests can also return false to indicate failure
|
# tests can also return false to indicate failure
|
||||||
Timeout.timeout TEST_TIMEOUT_SECONDS do
|
Timeout.timeout TEST_TIMEOUT_SECONDS do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user