Skip to content
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

Fix exception thrown when parsing test names #1519

Merged
merged 4 commits into from
Dec 2, 2024
Merged

Fix exception thrown when parsing test names #1519

merged 4 commits into from
Dec 2, 2024

Conversation

CharliePoole
Copy link
Member

Fixes #1510 Replaces PR #1513

@stevenaw @mikkelbu @OsirisTerje
I'd appreciate if one of you who commented on the issue would review this. Thanks to @stevenaw for the tests.

This is a somewhat adhoc change but one we will have to live with for a while unless we want to make substantial changes to how we process arguments. I suggest reading my comments on #1504.

Absent a rewrite, I've added fixups to deal with two situations:

  1. Quoted test names using ' or /, which needed fixing so that blanks are ignored outside of quotes.
  2. Unquoted test names, including those quoted using ", which is removed by cmd.exe. In this case, I combined a series of tokens to create a new one.

The new code is no longer sensitive to white space outside of quoted argument strings.

@CharliePoole CharliePoole merged commit 037b828 into main Dec 2, 2024
4 checks passed
@CharliePoole CharliePoole deleted the issue-1510 branch December 2, 2024 15:47
@stevenaw
Copy link
Member

stevenaw commented Dec 2, 2024

Thanks for proactively taking care of this @CharliePoole
We had family visiting on the weekend, but I'll still give this a review for my own education sometime in the next few days.

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.

exception occurred while invoking executor Unexpected token '(' at position 100 in selection expression.
4 participants