aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-02 14:02:24 +0200
committerGitHub2017-10-02 14:02:24 +0200
commit23da0aa7fb91c68807e1278b2f858beefe5ea35a (patch)
treed2d7c82656a7cde586ad7dc7dc5d821e5f093a29 /Library/Homebrew/test
parente7cf509cfb5891ad32eebf8d2ec58bd936af6694 (diff)
parent3bb89f5440c030e06819affe3b821a771e86a671 (diff)
downloadbrew-23da0aa7fb91c68807e1278b2f858beefe5ea35a.tar.bz2
Merge pull request #3247 from reitermarkus/fix-trash
Fix `brew tests` leaving last file in trash.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/cask/artifact/uninstall_zap_shared_examples.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cask/artifact/uninstall_zap_shared_examples.rb b/Library/Homebrew/test/cask/artifact/uninstall_zap_shared_examples.rb
index 06eec4a01..4fdab60d0 100644
--- a/Library/Homebrew/test/cask/artifact/uninstall_zap_shared_examples.rb
+++ b/Library/Homebrew/test/cask/artifact/uninstall_zap_shared_examples.rb
@@ -149,6 +149,8 @@ shared_examples "#uninstall_phase or #zap_phase" do
end
[:delete, :trash].each do |directive|
+ next if directive == :trash && ENV["HOMEBREW_TESTS_COVERAGE"].nil?
+
context "using :#{directive}" do
let(:dir) { TEST_TMPDIR }
let(:absolute_path) { Pathname.new("#{dir}/absolute_path") }