You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an error where not-existing filename where generated due to common prefix. Indeed this function will return an invalid directory in this case
Thank you for finding that! Historically, the problem is that gcovr still supports Python 2.7 which doesn't have a commonpath() function in the standard library, we therefore have a custom implementation in the gcovr.util module.
gcovr/gcovr/gcov.py
Line 167 in a782972
I ran into an error where not-existing filename where generated due to common prefix. Indeed this function will return an invalid directory in this case
it will result in directory /cygdrive/my due to the fact that commonprefix return the prefix string instead of the prefix path
I think the proper function to use here is
https://docs.python.org/3/library/os.path.html#os.path.commonpath
A similar issue caused #52
The text was updated successfully, but these errors were encountered: