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

Fix coverage tests on windows #16245

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

TheElectronWill
Copy link
Contributor

@TheElectronWill TheElectronWill commented Oct 24, 2022

test_windows_full failed

Coverage tests replaced all \ by /, but the paths are now escaped, which turns C:\folder\file into C:\\folder\\file. Thus we need to replace \\ by /!

Note: this fix is better than removing .escaped from paths, because paths are allowed to contains problematic characters such as newlines, which would break the coverage report.

@smarter
Copy link
Member

smarter commented Oct 24, 2022

What about filenames that contain escaped \, is that possible on Windows? 🤔

@TheElectronWill
Copy link
Contributor Author

TheElectronWill commented Oct 24, 2022

What about filenames that contain escaped , is that possible on Windows? thinking

No, because Windows filenames cannot contains backslashes \, and AFAIK there's no (way to do) escaping (on Windows filenames), so no \\ allowed 🙅 .

@TheElectronWill TheElectronWill merged commit 45ac398 into scala:main Oct 24, 2022
@TheElectronWill TheElectronWill deleted the coverage-fix-windows-ci branch October 24, 2022 19:07
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