Improve style
This commit is contained in:
		
							parent
							
								
									41a5265466
								
							
						
					
					
						commit
						bee3531090
					
				@ -4,14 +4,8 @@
 | 
			
		||||
module SharedEnvExtension
 | 
			
		||||
  extend T::Sig
 | 
			
		||||
 | 
			
		||||
  def setup_build_environment(
 | 
			
		||||
    formula: nil,
 | 
			
		||||
    cc: nil,
 | 
			
		||||
    build_bottle: false,
 | 
			
		||||
    bottle_arch: nil,
 | 
			
		||||
    testing_formula: false,
 | 
			
		||||
    debug_symbols: false
 | 
			
		||||
  )
 | 
			
		||||
  def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false,
 | 
			
		||||
                              debug_symbols: false)
 | 
			
		||||
    generic_shared_setup_build_environment(
 | 
			
		||||
      formula: formula, cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch,
 | 
			
		||||
      testing_formula: testing_formula, debug_symbols: debug_symbols
 | 
			
		||||
 | 
			
		||||
@ -10,14 +10,8 @@ module Stdenv
 | 
			
		||||
    ["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def setup_build_environment(
 | 
			
		||||
    formula: nil,
 | 
			
		||||
    cc: nil,
 | 
			
		||||
    build_bottle: false,
 | 
			
		||||
    bottle_arch: nil,
 | 
			
		||||
    testing_formula: false,
 | 
			
		||||
    debug_symbols: false
 | 
			
		||||
  )
 | 
			
		||||
  def setup_build_environment(formula: nil, 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,
 | 
			
		||||
                                    testing_formula: testing_formula, debug_symbols: debug_symbols)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -76,7 +76,7 @@ describe "brew install" do
 | 
			
		||||
  it "installs formulae with debug symbols", :integration_test do
 | 
			
		||||
    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
 | 
			
		||||
      .and not_to_output.to_stderr
 | 
			
		||||
      .and be_a_success
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user