-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Move class MatterTestConfig into its own file matter_test_config.py #39604
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
Move class MatterTestConfig into its own file matter_test_config.py #39604
Conversation
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.
Code Review
This pull request moves the MatterTestConfig
class into its own file, matter_test_config.py
, and updates all references to it across the src/python_testing
directory. The changes look good and address the issue of having the class defined in matter_testing.py
. There are a few suggestions for minor improvements, such as moving default values to matter_global_defaults.py
and adding comments to explain certain default values.
src/python_testing/matter_testing_infrastructure/chip/testing/matter_testing.py
Outdated
Show resolved
Hide resolved
src/python_testing/matter_testing_infrastructure/chip/testing/matter_test_config.py
Show resolved
Hide resolved
PR #39604: Size comparison from 943f2f5 to b2893c8 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #39604: Size comparison from 943f2f5 to f26fb21 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Created issue for |
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.
There are conflicts here, but should be good to go once those are resolved.
PR #39604: Size comparison from 5a3dbea to d0a5d45 Full report (54 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #39604: Size comparison from e0f8e39 to d1a367b Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #39604: Size comparison from d033b40 to 4280ea9 Full report (59 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Summary
Proposal to move class MatterTestConfig into is own file.
Move the class
MatterTestConfig
frommatter_testing.py
into its own file in this casematter_test_config.py
.Added new file into build.gn.
Updated references for MatterTestConfig across all
src/python_testing
Related issues
#Fixes project-chip/matter-test-scripts#594
Testing
All Linux REPL test must work.
Pending
There are some
_DEFAULT_<VARIABLENAMES>
that are repeated across several files I think we should move those into a file as final variables that can be imported from the files that need them. I think this could be a different improvement for the Python Framework.