|
|
|
@ -70,7 +70,7 @@ def coverage(source_root, build_root, log_dir): |
|
|
|
|
'--show-details', |
|
|
|
|
'--branch-coverage', |
|
|
|
|
covinfo]) |
|
|
|
|
elif gcovr_exe and gcovr_3_1: |
|
|
|
|
elif gcovr_exe and gcovr_new_rootdir: |
|
|
|
|
htmloutdir = os.path.join(log_dir, 'coveragereport') |
|
|
|
|
subprocess.check_call([gcovr_exe, |
|
|
|
|
'--html', |
|
|
|
@ -84,7 +84,7 @@ def coverage(source_root, build_root, log_dir): |
|
|
|
|
pathlib.Path(log_dir, 'coverage.xml').as_uri()) |
|
|
|
|
print('Text coverage report can be found at', |
|
|
|
|
pathlib.Path(log_dir, 'coverage.txt').as_uri()) |
|
|
|
|
if (lcov_exe and genhtml_exe) or (gcovr_exe and gcovr_3_1): |
|
|
|
|
if (lcov_exe and genhtml_exe) or (gcovr_exe and gcovr_new_rootdir): |
|
|
|
|
print('Html coverage report can be found at', |
|
|
|
|
pathlib.Path(htmloutdir, 'index.html').as_uri()) |
|
|
|
|
return 0 |
|
|
|
|