Skip to content

Commit 7f34205

Browse files
authored
Merge pull request #9577 from ruby/silence-coverage-report-output
Silence coverage report output from `coverage:report` task
2 parents 9b77394 + d2d15db commit 7f34205

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ task "coverage:report" do
136136
next
137137
end
138138

139+
$stdout = File.open(File::NULL, "w")
139140
SimpleCov.collate Dir[resultset] do
140141
coverage_dir "coverage"
141142
add_filter "/test/"
@@ -153,6 +154,8 @@ task "coverage:report" do
153154
src.filename.include?("/lib/bundler/") || src.filename.end_with?("/lib/bundler.rb")
154155
end
155156
end
157+
ensure
158+
$stdout = STDOUT
156159
end
157160

158161
spec = Gem::Specification.load(File.expand_path("rubygems-update.gemspec", __dir__))

0 commit comments

Comments
 (0)