Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalise LCOV source paths #373

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

matsjoyce-refeyn
Copy link
Contributor

Under windows, the git paths use unix-style paths, while the lcov paths use windows-style paths. In addition, coverage.py uses relative paths, but other tools like llvm-cov report absolute paths. So the source paths need to be made relative and unix-style.

I've tested this on Windows, before this fix I get No lines with coverage information in this diff. while afterwards the tool reports coverage changes correctly.

Under windows, the git paths use unix-style paths, while the lcov paths use windows-style paths. In addition, coverage.py uses relative paths, but other tools like llvm-cov report absolute paths. So the source paths need to be made relative and unix-style.
@Bachmann1234
Copy link
Owner

Thanks for the fix. assuming the build passes I should be able to get this out this weekend

@Bachmann1234
Copy link
Owner

I did not end up getting to this.et me merge it now and I'll release it soon. Than you for the pr!

@Bachmann1234 Bachmann1234 merged commit 73369d3 into Bachmann1234:main Nov 13, 2023
7 checks passed
@Bachmann1234
Copy link
Owner

@matsjoyce-refeyn matsjoyce-refeyn deleted the patch-1 branch November 13, 2023 15:38
@matsjoyce-refeyn
Copy link
Contributor Author

@Bachmann1234 Thank you! That was a very fast release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants