Fix coverage paths: report and artifacts use host paths, not /repo
- new_docker_build.sh: the coverage log now prints the host-side report location (<pipeline-root>/coverage/<project>/<os>); after genhtml, the container mount prefix is rewritten to the host path in coverage.info (SF: lines), the html path labels/cmd_line and coverage_summary.txt. The rewrite is plain text replacement after genhtml because genhtml must run in the container, where the sources exist under the mount root (lcov --substitute rewrites before the extract filter and would leave genhtml unable to read the sources). - README.md: document the host-path rewrite and the root ownership of the artifacts.
This commit is contained in:
1 parent
72c87230fd
commit
2f82acd7e0
2 files changed
+21
-5
No files matched your search
@@ -270,6 +270,12 @@ the tree:
|
||||
- `coverage.info` — lcov tracefile, filtered to `qt-migration-legatus/*`
|
||||
- `coverage_summary.txt` — totals (line / branch hit rate)
|
||||
|
||||
Source paths inside `coverage.info` and the html report are rewritten
|
||||
to host paths at the end of the collection (the container mount prefix
|
||||
is replaced by the pipeline root), so the report works directly on the
|
||||
host. Note: the files are created by root inside the container — read
|
||||
them as-is, or `chown` the directory on the host to edit/move it.
|
||||
|
||||
`--coverage-output-dir DIR` moves the report; `DIR` must be an absolute
|
||||
path under the pipeline root (relative values are ignored and the
|
||||
default above is used). The option is mutually exclusive with
|
||||
|
||||
Reference in new issue
Block a user