diff options
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 863037bdb..82e2a5f36 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -479,9 +479,7 @@ class Formula end def test - # Adding the used options allows us to use `build.with?` inside of tests - tab = Tab.for_name(name) - tab.used_options.each { |opt| build.args << opt unless build.has_opposite_of? opt } + @build = Tab.for_formula(self) ret = nil mktemp do @testpath = Pathname.pwd |
