aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci_build.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-05 11:34:42 -0400
committerJack Lloyd <[email protected]>2017-09-05 11:35:32 -0400
commitb9fdd383c047b34ea56d81341dda45a433c3cc74 (patch)
tree207d25c897aa06bc91dd4f291d2830ab66819fd7 /src/scripts/ci_build.py
parentf5cd933003d36a725a6127fac070b76d4be6d462 (diff)
Name files as codecov script expects
It searches for files with specific patterns which cov.info did not match.
Diffstat (limited to 'src/scripts/ci_build.py')
-rwxr-xr-xsrc/scripts/ci_build.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py
index aafb00d99..7267ecff7 100755
--- a/src/scripts/ci_build.py
+++ b/src/scripts/ci_build.py
@@ -372,10 +372,13 @@ def main(args=None):
print('Error: gcov not found in PATH (%s)' % (os.getenv('PATH')))
return 1
+ cov_file = 'coverage.info'
+ raw_cov_file = 'coverage.info.raw'
+
cmds.append(['lcov', '--capture', '--directory', options.root_dir,
- '--output-file', 'cov.info.raw'])
- cmds.append(['lcov', '--remove', 'cov.info.raw', '/usr/*', '--output-file', 'cov.info'])
- cmds.append(['lcov', '--list', 'cov.info'])
+ '--output-file', raw_cov_file])
+ cmds.append(['lcov', '--remove', raw_cov_file, '/usr/*', '--output-file', cov_file])
+ cmds.append(['lcov', '--list', cov_file])
if have_prog('coverage'):
cmds.append(['coverage', 'run', '--branch', botan_py])