-
Notifications
You must be signed in to change notification settings - Fork 10.5k
test: quote the python interpreter #32571
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
This quotes the path to the interpreter which is required to ensure that spaces in paths do not cause issues when executing the tests.
CC: @drexin |
@swift-ci please smoke test |
@compnerd and I discussed this offline. I think it would be good if we could find a way to make the change at the substitution level to avoid changing all the occurrences and also make it more robust for future cases. |
While I agree in principle that quoting in the lit infrastructure would be better, it causes ~200 new failures due to the quoting when the path contains spaces. In particular the use of
which will try to execute the quoted path which won't work. |
cc: @yln Do you have any suggestions? |
My understanding:
I also dislike changing Is the purpose of the quotes around Or another hacky solution: quote |
Yeah, I think that I ended up on the last option - introduce an unquoted python path that can be used for the custom frontend action. I don't think that there is a good solution to knowing what transform the driver should do - the expectation is that it is |
Just to make sure we are on the same page: my understanding is that the following Meaning that the list itself doesn't need quotes as long as the individual elements of the list are properly quoted. I think this can be handled in the lit.cfg when stetting up substitutions. This would of course require more work, but I think would lead to the cleanest solution. When you say "driver", do you mean the swift/clang frontend? I don't think they need to involved for this. |
I don't think that the As to when I say driver, I mean the swift driver. The swift driver is involved - it consumes the |
Ahh, I think I now understand. Thanks for explaining! So the issue is the choice of |
It does not, its hardcoded to use |
This quotes the path to the interpreter which is required to ensure that
spaces in paths do not cause issues when executing the tests.
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.