diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2018-12-02 08:50:48 +0530 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-02 19:47:42 +0200 |
commit | 41a98d0fdda516ba4b8a7ae31874e37ec42cb363 (patch) | |
tree | 433724107c205951783349835c0a9fbb2923ef37 /mesonbuild | |
parent | d272f23dba57fa6d4f0bcd56ebb77e3889a3e81c (diff) | |
download | meson-41a98d0fdda516ba4b8a7ae31874e37ec42cb363.zip meson-41a98d0fdda516ba4b8a7ae31874e37ec42cb363.tar.gz meson-41a98d0fdda516ba4b8a7ae31874e37ec42cb363.tar.bz2 |
coverage: Print summary after gcovr html generation
summary from stdout is often used by Automated builds to show build details
The --print-summary option was added to gcovr in v3.2, since html output
was added only in 3.1, limitting support to 3.2 won’t be a big deal.
--print-summary is not enabled for text/xml report generation as it will
result in meson not supporting any gcovr version less than 3.2.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/scripts/coverage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/scripts/coverage.py b/mesonbuild/scripts/coverage.py index 0509eff..6d7e707 100644 --- a/mesonbuild/scripts/coverage.py +++ b/mesonbuild/scripts/coverage.py @@ -107,13 +107,14 @@ def coverage(outputs, source_root, subproject_root, build_root, log_dir): subprocess.check_call([gcovr_exe, '--html', '--html-details', + '--print-summary', '-r', build_root, '-e', subproject_root, '-o', os.path.join(htmloutdir, 'index.html'), ]) outfiles.append(('Html', pathlib.Path(htmloutdir, 'index.html'))) elif outputs: - print('lcov/genhtml or gcovr >= 3.1 needed to generate Html coverage report') + print('lcov/genhtml or gcovr >= 3.2 needed to generate Html coverage report') exitcode = 1 if not outputs and not outfiles: |