Only run trash test when collecting coverage.
This commit is contained in:
parent
965ca01596
commit
3bb89f5440
@ -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") }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user