-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Tests: adjust PackageModelTests for Windows #6686
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
@swift-ci please smoke test |
@swift-ci please smoke test |
@swift-ci please test Windows platform |
@swift-ci please smoke test |
all these use of |
I don't feel that is the case. We need to ensure that the JSON that we are hardcoding here is valid - the paths have |
@swift-ci please test Windows platform |
right, I understand why it was done. the point is that if need to litter too many of our tests with |
The only alternative that comes to mind is to encode the structure and rely on Codable to serialise to a JSON string. |
Adjust the expectations to use the native path spelling.
@swift-ci please smoke test |
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.
Nice, thank you!
Adjust the path spelling for the native path arc separator and escaping
for the encoding in the JSON. Windows uses
\
as the path arcseparator which needs to be escaped for ensuring that the JSON is valid.