test_formula_installer: fix log file leak

This commit is contained in:
Xu Cheng 2015-07-21 17:23:04 +08:00
parent c4ba428d54
commit c39b0ef000

View File

@ -23,6 +23,8 @@ class InstallTests < Homebrew::TestCase
keg.unlink
keg.uninstall
formula.clear_cache
# there will be log files when sandbox is enable.
formula.logs.rmtree if formula.logs.directory?
end
refute_predicate keg, :exist?