Remove non-Cantera code from coverage report
This commit is contained in:
parent
b988a3f3ab
commit
7bbadb8063
1 changed files with 7 additions and 1 deletions
|
|
@ -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():
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue