10000 gcovr in automated builds windows/mingw no output due to drive letter issue · Issue #86 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gcovr in automated builds windows/mingw no output due to drive letter issue #86

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

Closed
kreuzberger opened this issue Feb 16, 2015 · 3 comments
Labels
Filters related to filters, include/exclude, path handling Platform: Windows Type: Bug

Comments

@kreuzberger
Copy link
Contributor

Hi!
With older (3.2) and current version of gcovr (3.3-prerelease) i have no output from gcovr, alle .g files are available. After some tries i found out that files are filtered due to a drive letter case issue:

gcovr detect e.g. files in E:\src, the root ist given as e:\src

Unfortunately the root comes from the automated build system, where the root is normaly given via environment variables (e.g. %CD%, %WORKSPACE% )

maybe a "normalization" of the given root is required in the gcovr script.
I try to fix it in my windows script which calls gcovr.

@mrx23dot
Copy link

I can confirm this!
Use the following everywhere where possible in code:

from os.path import normpath
abs_filename = os.path.abspath(normpath(filename))

@kreuzberger
Copy link
Contributor Author

for me on windows is was also necessary to call normcase. This fixes the drive letter issue alone.
from os.path import normpath
from os.path import normcase
abs_filename = os.path.abspath(normpath(normcase((filename)))

@latk latk added the Filters related to filters, include/exclude, path handling label Feb 11, 2018
@latk
Copy link
Member
latk commented Mar 6, 2018

Thank you for reporting this issue. It has been re-discovered in #230 where a fix is being developed. If you have any insight (e.g. any explanation why this cannot be reproduced on our Appveyor tests), please add your insight there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Filters related to filters, include/exclude, path handling Platform: Windows Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants
0