-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
Problem when combining windows generated data on linux machine #618
Comments
Original comment by Bruno Gola (Bitbucket: brunogola, GitHub: Unknown) sorry, I didn't notice I wasn't logged in when submitting the issue. |
@brunogola Can you say more about what the actual problem is? Where do things go wrong? |
This sounds like something having to do with |
Original comment by Bruno Gola (Bitbucket: brunogola, GitHub: Unknown) hi @nedbat, the problem is that the resulting data file has a wrong path ("/tmp/coveragepy_test/project/module/tests\file.py") if you download the .tar file and run (on linux):
check the .coverage file. there is a .coveragerc in the .tar, i believe the [paths] setting is right. thanks for the reply |
OK, I finally understand: the specific wrong thing is the backslash in the path, since it should be a Linux path. Interestingly, if you swap the last two lines in your [paths] configuration, it works, though it might not then on Windows. I'm looking into it. |
This is fixed in 87e7ffae9f6f (bb) |
This was included in coverage.py v4.5, released today. |
Originally reported by Anonymous
If i have the following directory structure:
a coveragerc with the folowing paths configuration:
The windows data file contains:
When i run, on a Linux machine:
the resulting coverage data file is:
I tried many different [paths] configuration with no luck.
I'm uploading a .tar.gz with the same scenario so you only need to do coverage combine coverage.win.paths to see the problem happening.
let me know if I can provide more information.
thanks!
The text was updated successfully, but these errors were encountered: