tests: fix omit path list
authorMarkus Zapke-Gründemann <info@keimlink.de>
Wed, 11 Jan 2012 15:37:25 +0100
changeset 15857 58dcb837f193
parent 15856 6bed6cc6d0d0
child 15858 14132a55d66b
tests: fix omit path list All directories need a trailing asterisk. Otherwise the files are not excluded from coverage.
tests/run-tests.py
--- a/tests/run-tests.py	Fri Jan 13 14:52:47 2012 +0100
+++ b/tests/run-tests.py	Wed Jan 11 15:37:25 2012 +0100
@@ -493,7 +493,7 @@
         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')