Fix type errors in test.

This commit is contained in:
Markus Reiter 2020-11-24 09:55:48 +01:00
parent 38ec7b684d
commit 650ec514c1
2 changed files with 5 additions and 2 deletions

View File

@ -65,6 +65,9 @@ module Homebrew
sig { returns(T.nilable(T::Boolean)) }
def ignore_dependencies?; end
sig { returns(T.nilable(T::Boolean)) }
def keep_tmp?; end
end
end
end

View File

@ -30,13 +30,13 @@ begin
raise "cannot kill child processes without `pkill`, please install!" unless which("pkill")
end
formula = args.named.to_resolved_formulae.first
formula = T.must(args.named.to_resolved_formulae.first)
formula.extend(Homebrew::Assertions)
formula.extend(Homebrew::FreePort)
formula.extend(Debrew::Formula) if args.debug?
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
Timeout.timeout TEST_TIMEOUT_SECONDS do