GeezerVison is showing github.com — test: fix parsing test flags by daeyeon · Pull Request #48012 · nodejs/node
Conversation
daeyeon
commented
May 15, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This does not replace _ with - when parsing flags.
I believe that it was added for a certain purpose, but it doesn't seem to be needed anymore. Currently, the cli options are not passed as intended in the following cases:
// Flags: --diagnostic-dir=~/PATH_HAS_UNDERSCORES
NOTE: The test started as a child_process using these flags: [
'--diagnostic-dir=~/PATH-HAS-UNDERSCORES' <--
]
// Flags: --experimental-permission --allow-fs-read=~/PATH_HAS_UNDERSCORES
The test started as a child_process using these flags: [
'--experimental-permission',
'--allow-fs-read=~/PATH-HAS-UNDERSCORES' <--
]
Signed-off-by: Daeyeon Jeong [email protected]
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
bricss reacted with thumbs up emoji
This removes replacing `_` with `-` in the flags defined.
Signed-off-by: Daeyeon Jeong <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not see any reasoning for this in the original PR adding this: #24876
and it matches the python behavior:
|
flags_match = FLAGS_PATTERN.search(source) |
|
if flags_match: |
|
flags = flags_match.group(1).strip().split() |
so LGTM
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
daeyeon reacted with thumbs up emoji
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced May 18, 2023
MoLow
pushed a commit
to MoLow/node
that referenced
this pull request
Jul 6, 2023
Reviewers
lpinca
lpinca approved these changes
MoLow
MoLow approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
author ready
PRs with CI started, the required approvals, and no outstanding review comments.
needs-ci
PRs that need a full CI run.
test
Issues and PRs related to Node.js core tests and test infrastructure.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|