10000 Matter testing framework: Fix bool-arg so it is not lower case'd by cecille · Pull Request #39917 · project-chip/connectedhomeip · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Matter testing framework: Fix bool-arg so it is not lower case'd #39917

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

Conversation

cecille
Copy link
Contributor
@cecille cecille commented Jul 9, 2025

Summary

Fixes the argument parsing for boolean arguments in the python matter testing framework. These were all getting converted to lower case.

All the other --x-arg command line arguments respect casing, but the bool one got lower cased because of the regex. Fixing this and adding a test to ensure all the arg types come through properly.

Related issues

#39914

Testing

Please see attached unit test

Readability checklist

The checklist below will help the reviewer finish PR review in time and keep the
code readable:

  • [ X] PR title is
    descriptive
  • [X ] Apply the
    “When in Rome…”
    rule (coding style)
  • [ X] PR size is short
  • [ X] Try to avoid "squashing" and "force-update" in commit history
  • [? ] CI time didn't increase - not sure, I guess we'll see. I'm adding a new test.

See: Pull Request Guidelines

All the other --x-arg command line arguments resepect casing,
but the bool one got lower cased because of the regex. Fixing this
and adding a test to ensure all the arg types come through properly.
Copy link
Contributor
@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request fixes an issue where boolean arguments in the Python matter testing framework were being converted to lowercase, causing incorrect parsing. The fix involves modifying the regex in bool_named_arg to correctly handle boolean values with different casing and adding a unit test to verify the fix.

@github-actions github-actions bot added the tests label Jul 9, 2025
@mergify mergify bot merged commit 58ac7fb into project-chip:master Jul 11, 2025
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0