[PATCH 1 of 2] tests: fix omit path list

Markus Zapke-Gründemann markuszapke at gmx.net
Wed Jan 11 10:16:04 CST 2012


# HG changeset patch
# User Markus Zapke-Gründemann <info at keimlink.de>
# Date 1326292645 -3600
# Node ID 1d105733e04aaab0960da0b185aa6f3b02173483
# Parent  3cf2bb3a9fcce4ca7e985036a7d6388804a46096
tests: fix omit path list

All directories need a trailing asterisk. Otherwise the files are not excluded
from coverage.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -493,7 +493,7 @@ def outputcoverage(options):
         return
 
     covrun('-c')
-    omit = ','.join([BINDIR, TESTDIR])
+    omit = ','.join(map(os.path.join, [BINDIR, TESTDIR], ['*'] * 2))
     covrun('-i', '-r', '"--omit=%s"' % omit) # report
     if options.annotate:
         adir = os.path.join(TESTDIR, 'annotated')


More information about the Mercurial-devel mailing list