From df436e331db87e2c3b541aa10bfe0516d0d08743 Mon Sep 17 00:00:00 2001 From: Markus Reiter <me@reitermark.us> Date: Sun, 29 Nov 2020 16:08:10 +0100 Subject: [PATCH] Fix `.simplecov`. --- Library/Homebrew/.simplecov | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/.simplecov b/Library/Homebrew/.simplecov index 9bdc0df93f..b2b00acf66 100755 --- a/Library/Homebrew/.simplecov +++ b/Library/Homebrew/.simplecov @@ -29,8 +29,7 @@ SimpleCov.start do # be quiet, the parent process will be in charge of output and checking coverage totals SimpleCov.print_error_status = false - at_exit do - exit_code = $ERROR_INFO.nil? ? 0 : $ERROR_INFO.status + SimpleCov.at_exit do $stdout.reopen("/dev/null") # Just save result, but don't write formatted output. @@ -40,7 +39,7 @@ SimpleCov.start do simplecov_result = SimpleCov::Result.new(coverage_result) SimpleCov::ResultMerger.store_result(simplecov_result) - exit! exit_code + exit! SimpleCov.exit_status_from_exception || 0 end else command_name "#{command_name} (#{$PROCESS_ID})" -- GitLab