Skip to content
Snippets Groups Projects
Commit 650ec514 authored by Markus Reiter's avatar Markus Reiter
Browse files

Fix type errors in `test`.

parent 38ec7b68
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment