Skip to content

Commit 1170588

Browse files
antonio-amjrbzbarsky-apple
authored andcommitted
[Feature] Adding Step Endpoint Information (#35662)
* Adding endpoint information to test steps methods and hooks along with logging. Also, the TC_ACE_1_3 and TC_BOOLCFG_2_1 tests were updated to demonstrate how to used the updated hooks to inform the endpoint associated with every step. * Rolling back the test stop unnecessary exception parameter * Updating TestDecoratorHooks with endpoint as well. * Minor grammar fix Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> --------- Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
1 parent c1b0f5b commit 1170588

File tree

5 files changed

+149
-138
lines changed

5 files changed

+149
-138
lines changed

scripts/py_matter_yamltests/matter_yamltests/hooks.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,16 @@ def step_skipped(self, name: str, expression: str):
152152
"""
153153
pass
154154

155-
def step_start(self, request: TestStep):
155+
def step_start(self, request: TestStep, endpoint: Optional[int] = None):
156156
"""
157157
This method is called when the runner starts running a step from the test.
158158
159159
Parameters
160160
----------
161161
request: TestStep
162162
The original request as defined by the test step.
163+
endpoint: int
164+
An optional device endpoint the step will target.
163165
"""
164166
pass
165167

0 commit comments

Comments
 (0)