Mercurial > hg
comparison tests/run-tests.py @ 8696:73aa0510740d
tests: delete parallel coverage files after combining
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 03 Jun 2009 14:10:36 +0200 |
parents | 78ab2a12b4d9 |
children | 6e41d3c5619f |
comparison
equal
deleted
inserted
replaced
8695:9a89253a32e6 | 8696:73aa0510740d |
---|---|
329 # Exclude as system paths (ignoring empty strings seen on win) | 329 # Exclude as system paths (ignoring empty strings seen on win) |
330 omit += [x for x in sys.path if x != ''] | 330 omit += [x for x in sys.path if x != ''] |
331 omit = ','.join(omit) | 331 omit = ','.join(omit) |
332 | 332 |
333 covrun('-c') # combine from parallel processes | 333 covrun('-c') # combine from parallel processes |
334 for fn in os.listdir(TESTDIR): | |
335 if fn.startswith('.coverage.'): | |
336 os.unlink(os.path.join(TESTDIR, fn)) | |
337 | |
334 covrun('-i', '-r', '"--omit=%s"' % omit) # report | 338 covrun('-i', '-r', '"--omit=%s"' % omit) # report |
335 if options.annotate: | 339 if options.annotate: |
336 adir = os.path.join(TESTDIR, 'annotated') | 340 adir = os.path.join(TESTDIR, 'annotated') |
337 if not os.path.isdir(adir): | 341 if not os.path.isdir(adir): |
338 os.mkdir(adir) | 342 os.mkdir(adir) |