2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-01-05 15:45:45 +01:00
|
|
|
module Homebrew
|
|
|
|
module Diagnostic
|
|
|
|
class Checks
|
|
|
|
def check_integration_test
|
|
|
|
"This is an integration test" if ENV["HOMEBREW_INTEGRATION_TEST"]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2016-02-06 18:40:40 +01:00
|
|
|
|
|
|
|
def exec(*args)
|
|
|
|
if ENV["HOMEBREW_TESTS_COVERAGE"] && ENV["HOMEBREW_INTEGRATION_TEST"]
|
|
|
|
# Ensure we get coverage results before replacing the current process.
|
|
|
|
SimpleCov.result
|
|
|
|
end
|
|
|
|
Kernel.exec(*args)
|
|
|
|
end
|
2016-01-05 15:45:45 +01:00
|
|
|
end
|