diff options
| author | Jack Nagel | 2014-06-23 21:39:10 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-23 22:11:39 -0500 |
| commit | c0ddc3b1f3c5a326a3c5d2c5c168d53c97b06172 (patch) | |
| tree | 77ef00aaab7cba2b9c1fa164fc9e1dfd26791141 /Library | |
| parent | 362045fe91f0ed66df9369e4ceb78cbdb31373b3 (diff) | |
| download | homebrew-c0ddc3b1f3c5a326a3c5d2c5c168d53c97b06172.tar.bz2 | |
Clear cache after patching tests
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_patching.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb index 9d187c400..9d9f95e1d 100644 --- a/Library/Homebrew/test/test_patching.rb +++ b/Library/Homebrew/test/test_patching.rb @@ -14,6 +14,11 @@ class PatchingTests < Homebrew::TestCase end end + def teardown + @_f.clear_cache + @_f.patchlist.select(&:external?).each(&:clear_cache) + end + def assert_patched(path) s = File.read(path) refute_includes s, "NOOP", "#{path} was not patched as expected" |
