Only run trash test when collecting coverage.

This commit is contained in:
Markus Reiter 2017-10-01 22:26:04 +02:00
parent 965ca01596
commit 3bb89f5440

View File

@ -149,6 +149,8 @@ shared_examples "#uninstall_phase or #zap_phase" do
end end
[:delete, :trash].each do |directive| [:delete, :trash].each do |directive|
next if directive == :trash && ENV["HOMEBREW_TESTS_COVERAGE"].nil?
context "using :#{directive}" do context "using :#{directive}" do
let(:dir) { TEST_TMPDIR } let(:dir) { TEST_TMPDIR }
let(:absolute_path) { Pathname.new("#{dir}/absolute_path") } let(:absolute_path) { Pathname.new("#{dir}/absolute_path") }