mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Remove non-Cantera code from coverage report
This commit is contained in:
@@ -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():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user