From 3bb89f5440c030e06819affe3b821a771e86a671 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 1 Oct 2017 22:26:04 +0200 Subject: [PATCH] Only run trash test when collecting coverage. --- .../test/cask/artifact/uninstall_zap_shared_examples.rb | 2 ++ 1 file changed, 2 insertions(+) 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 06eec4a011..4fdab60d00 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") }