Improve style

This commit is contained in:
Lukas Oberhuber 2022-08-01 15:25:34 -07:00
parent 41a5265466
commit bee3531090
3 changed files with 5 additions and 17 deletions

View File

@ -4,14 +4,8 @@
module SharedEnvExtension module SharedEnvExtension
extend T::Sig extend T::Sig
def setup_build_environment( def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false,
formula: nil, debug_symbols: false)
cc: nil,
build_bottle: false,
bottle_arch: nil,
testing_formula: false,
debug_symbols: false
)
generic_shared_setup_build_environment( generic_shared_setup_build_environment(
formula: formula, cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch, formula: formula, cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch,
testing_formula: testing_formula, debug_symbols: debug_symbols testing_formula: testing_formula, debug_symbols: debug_symbols

View File

@ -10,14 +10,8 @@ module Stdenv
["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"] ["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
end end
def setup_build_environment( def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false,
formula: nil, debug_symbols: false)
cc: nil,
build_bottle: false,
bottle_arch: nil,
testing_formula: false,
debug_symbols: false
)
generic_setup_build_environment(formula: formula, cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch, generic_setup_build_environment(formula: formula, cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch,
testing_formula: testing_formula, debug_symbols: debug_symbols) testing_formula: testing_formula, debug_symbols: debug_symbols)

View File

@ -76,7 +76,7 @@ describe "brew install" do
it "installs formulae with debug symbols", :integration_test do it "installs formulae with debug symbols", :integration_test do
setup_test_formula "testball1" setup_test_formula "testball1"
expect { brew "install", "testball1", "--debug-symbols", "-s" } expect { brew "install", "testball1", "--debug-symbols", "--build-from-source" }
.to output(%r{#{HOMEBREW_CELLAR}/testball1/0\.1}o).to_stdout .to output(%r{#{HOMEBREW_CELLAR}/testball1/0\.1}o).to_stdout
.and not_to_output.to_stderr .and not_to_output.to_stderr
.and be_a_success .and be_a_success