mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-14 13:28:11 +00:00
update Makefile and coverage2el.py to coverage-3.4
It might still work with coverage-3.3 if you run with COVERAGE_OMIT=""
This commit is contained in:
@ -1,10 +1,20 @@
|
||||
|
||||
import os.path
|
||||
from coverage import coverage, summary, misc
|
||||
|
||||
class ElispReporter(summary.SummaryReporter):
|
||||
def report(self):
|
||||
self.find_code_units(None, ["/System", "/Library", "/usr/lib",
|
||||
"support/lib", "src/allmydata/test"])
|
||||
try:
|
||||
# coverage-3.4 has both omit= and include= . include= is applied
|
||||
# first, then omit= removes items from what's left. These are
|
||||
# tested with fnmatch, against fully-qualified filenames.
|
||||
self.find_code_units(None,
|
||||
omit=[os.path.abspath("src/allmydata/test/*")],
|
||||
include=[os.path.abspath("src/allmydata/*")])
|
||||
except TypeError:
|
||||
# coverage-3.3 only had omit=
|
||||
self.find_code_units(None, ["/System", "/Library", "/usr/lib",
|
||||
"support/lib", "src/allmydata/test"])
|
||||
|
||||
out = open(".coverage.el", "w")
|
||||
out.write("""
|
||||
|
Reference in New Issue
Block a user