Skip to content
Snippets Groups Projects
Commit 44a26437 authored by Baptiste Fontaine's avatar Baptiste Fontaine
Browse files

tests: rm the coverage cache before each run


Closes Homebrew/homebrew#48209.

Signed-off-by: default avatarBaptiste Fontaine <batifon@yahoo.fr>
parent 89c63279
No related branches found
No related tags found
No related merge requests found
require "fileutils"
module Homebrew
def tests
(HOMEBREW_LIBRARY/"Homebrew/test").cd do
ENV["TESTOPTS"] = "-v" if ARGV.verbose?
ENV["HOMEBREW_TESTS_COVERAGE"] = "1" if ARGV.include? "--coverage"
ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat"
if ARGV.include? "--coverage"
ENV["HOMEBREW_TESTS_COVERAGE"] = "1"
FileUtils.rm_f "coverage/.resultset.json"
end
# Override author/committer as global settings might be invalid and thus
# will cause silent failure during the setup of dummy Git repositories.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment