From cecf9a564fca731fc3293d99bead86c8c280541d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 14 Sep 2013 11:51:36 -0500 Subject: [PATCH] Tear down the cache after installation tests --- Library/Homebrew/test/test_formula_install.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/test/test_formula_install.rb b/Library/Homebrew/test/test_formula_install.rb index ea1584ec65..967f2e6cc3 100644 --- a/Library/Homebrew/test/test_formula_install.rb +++ b/Library/Homebrew/test/test_formula_install.rb @@ -17,6 +17,10 @@ end class ConfigureTests < Test::Unit::TestCase + def teardown + HOMEBREW_CACHE.rmtree + end + def test_detect_failed_configure f = ConfigureFails.new shutup { f.brew { f.install } } @@ -27,6 +31,10 @@ end class InstallTests < Test::Unit::TestCase + def teardown + HOMEBREW_CACHE.rmtree + end + def temporary_install f # Brew and install the given formula shutup do