[Windows] Fix windows breakage caused by lit.cfg change#33062
[Windows] Fix windows breakage caused by lit.cfg change#33062compnerd merged 1 commit intoswiftlang:masterfrom
Conversation
|
@swift-ci test |
test/lit.cfg
Outdated
There was a problem hiding this comment.
Using os.path.join is better IMO, though you could just keep this as is I think.
There was a problem hiding this comment.
A lot better, thanks for the pointer.
|
@swift-ci test |
|
Build failed |
|
Build failed |
|
@swift-ci Please test Windows platform |
|
@swift-ci please test Windows platform |
|
@swift-ci Please test OS X platform |
|
Looks like the original issue was slightly different, it is referring to an "Unrecognized escape code" inside the json map, not referring to incorrect path separators. |
|
@swift-ci test |
|
Build failed |
|
Build failed |
|
@swift-ci please test Windows platform |
|
I believe that there are two categories of failures, some related to the stdlib and others related to the path encoding. |
I believe the path encoding failure is caused by the fact that on Linux and macOS, having a comma after the last element of a JSON list is somehow considered to be a valid termination sequence, but on Windows it is not. |
|
Commas after the last element in a list are not valid json: https://www.json.org/json-en.html |
|
Actually it seems that having any line ending with a comma is not valid on Windows? Not necessarily even after the last element in a list... |
|
More likely its line endings ... Windows uses |
|
|
|
It is created as: The error seems to be pointing directly at: Which is separating second and third list elements in the generated JSON list... |
|
The path that is generated from From the logs: |
|
I'm confused. Here's the most recent failure log: https://ci-external.swift.org/job/swift-PR-windows/5448/consoleText The resulting path generated by |
|
Ah I see it now in: |
|
I have a fix, I'll upload it in a second. |
|
#33066 should take care of it |
|
@swift-ci test |
|
Build failed |
|
Build failed |
|
@swift-ci please test Windows platform |
Caused by a change in: #32903