]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115556: Remove quotes from command-line arguments in test.bat and rt.bat (#115557)
authorŁukasz Langa <lukasz@langa.pl>
Fri, 16 Feb 2024 20:24:56 +0000 (21:24 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Feb 2024 20:24:56 +0000 (21:24 +0100)
commit711f42de2e3749208cfa7effa0d45b04e4e1fdd4
tree73f961663da94c3fc700b5d7664e0eb7da15cfad
parent74e6f4b32fceea8e8ffb0424d9bdc6589faf7ee4
gh-115556: Remove quotes from command-line arguments in test.bat and rt.bat (#115557)

This change essentially replaces usage of `%1` with `%~1`, which removes
quotes, if any. Without this change, the if statements fail due to
the quotes mangling the syntax.

Additionally, this change works around comma being treated as a parameter
delimiter in test.bat by escaping commas at time of parsing. Tested
combinations of rt and regrtest arguments, all seems to work as before
but now you can specify commas in arguments like "-uall,extralargefile".
Misc/NEWS.d/next/Tests/2024-02-16-13-04-28.gh-issue-115556.rjaQ9w.rst [new file with mode: 0644]
PCbuild/rt.bat
Tools/buildbot/test.bat