Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-115556: Remove quotes from command-line arguments in test.bat and rt.bat #115557

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

Merged
merged 4 commits into from
Feb 16, 2024

Conversation

ambv
Copy link
Contributor

@ambv ambv commented Feb 16, 2024

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".

…t and rt.bat

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.
@ambv
Copy link
Contributor Author

ambv commented Feb 16, 2024

!buildbot Windows11 Bigmem

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @ambv for commit 9a8429c 🤖

The command will test the builders whose names match following regular expression: Windows11 Bigmem

The builders matched are:

  • AMD64 Windows11 Bigmem PR

@ambv
Copy link
Contributor Author

ambv commented Feb 16, 2024

!buildbot Windows11 Bigmem

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @ambv for commit 9a8429c 🤖

The command will test the builders whose names match following regular expression: Windows11 Bigmem

The builders matched are:

  • AMD64 Windows11 Bigmem PR

@ambv
Copy link
Contributor Author

ambv commented Feb 16, 2024

!buildbot Windows11 Bigmem

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @ambv for commit 624b2bf 🤖

The command will test the builders whose names match following regular expression: Windows11 Bigmem

The builders matched are:

  • AMD64 Windows11 Bigmem PR

@zware
Copy link
Member

zware commented Feb 16, 2024

I have no objections to this, but do please run the full set of Windows buildbots before merge.

@ambv
Copy link
Contributor Author

ambv commented Feb 16, 2024

!buildbot Windows

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @ambv for commit 7a96ee0 🤖

The command will test the builders whose names match following regular expression: Windows

The builders matched are:

  • AMD64 Windows11 Bigmem PR
  • AMD64 Windows11 Refleaks PR
  • ARM64 Windows Non-Debug PR
  • AMD64 Windows10 PR
  • ARM64 Windows PR
  • AMD64 Windows11 Non-Debug PR
  • AMD64 Windows Server 2022 NoGIL PR

@ambv ambv merged commit 711f42d into python:main Feb 16, 2024
@ambv ambv deleted the escape-commas branch February 16, 2024 20:25
@ambv ambv restored the escape-commas branch February 23, 2024 09:34
@ambv ambv deleted the escape-commas branch February 23, 2024 09:34
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
…t and rt.bat (python#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".
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…t and rt.bat (python#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".
LukasWoodtli pushed a commit to LukasWoodtli/cpython that referenced this pull request Jan 22, 2025
…t and rt.bat (python#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".
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.

3 participants