-
Notifications
You must be signed in to change notification settings - Fork 283
Do not use realpath for DirectoryPrefixFilter #712
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
Conversation
Hi William, this place is a little bit wired, see #635 (comment). Lines 271 to 278 in dce78fc
|
I don't deny that this is an odd situation. However, the real impact of this PR is to ensure consistency in the gcovr logic. The pattern is updated using a call to realpath() [line 256 of utils.py], so then the user path should also be updated with a call to realpath(). Right? |
@whart222 I've checked how to fix the erros of the CI. The After thinking a little bit about this default filter with the root directory I was thinking about removing the Can you check my branch https://github.com/Spacetown/gcovr/tree/whart222 which is based on yours? With this branch the test are still working and it should solve your configuration of the home directory described in #635. In this case we can also remove the warning about a symlinked root directory. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #712 +/- ##
==========================================
- Coverage 95.57% 95.56% -0.01%
==========================================
Files 28 28
Lines 3862 3858 -4
Branches 671 670 -1
==========================================
- Hits 3691 3687 -4
Misses 93 93
Partials 78 78
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@whart222 Did you check if your problem is solved with the current version? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGFM
A minor change to apply realpath() to the path provided to DirectoryPrefixFilter. This ensures that both the pattern used to match directories and the directory paths are converted to realpaths.
Closes #635