Remove non-Cantera code from coverage report

This commit is contained in:
Ray Speth
2012-07-18 17:37:26 +00:00
parent b988a3f3ab
commit 7bbadb8063

View File

@@ -57,12 +57,18 @@ def collect():
command = ['lcov', '-c',
'-b', '.',
'-o', 'coverage.info']
'-o', 'coverage-raw.info']
for d in sourcedirs:
command.append('-d')
command.append(d)
subprocess.call(command)
# Filter to remove non-Cantera code
subprocess.call(['lcov',
'-o', 'coverage.info',
'-r', 'coverage-raw.info',
'/usr/include/*', '*/ext/*'])
os.remove('coverage-raw.info')
def genhtml():
"""