Mercurial > hg
comparison tests/run-tests.py @ 15857:58dcb837f193
tests: fix omit path list
All directories need a trailing asterisk. Otherwise the files are not excluded
from coverage.
author | Markus Zapke-Gründemann <info@keimlink.de> |
---|---|
date | Wed, 11 Jan 2012 15:37:25 +0100 |
parents | 3e13ade423f0 |
children | 14132a55d66b |
comparison
equal
deleted
inserted
replaced
15856:6bed6cc6d0d0 | 15857:58dcb837f193 |
---|---|
491 | 491 |
492 if options.child: | 492 if options.child: |
493 return | 493 return |
494 | 494 |
495 covrun('-c') | 495 covrun('-c') |
496 omit = ','.join([BINDIR, TESTDIR]) | 496 omit = ','.join(map(os.path.join, [BINDIR, TESTDIR], ['*'] * 2)) |
497 covrun('-i', '-r', '"--omit=%s"' % omit) # report | 497 covrun('-i', '-r', '"--omit=%s"' % omit) # report |
498 if options.annotate: | 498 if options.annotate: |
499 adir = os.path.join(TESTDIR, 'annotated') | 499 adir = os.path.join(TESTDIR, 'annotated') |
500 if not os.path.isdir(adir): | 500 if not os.path.isdir(adir): |
501 os.mkdir(adir) | 501 os.mkdir(adir) |