From 33466077d3da8cf92d4fe9ea87a75fd0444af76a Mon Sep 17 00:00:00 2001 From: Tennessee Carmel-Veilleux Date: Fri, 16 Jun 2023 15:32:22 -0400 Subject: [PATCH] [hotfix] Fix merge error in matter_testing_support.py (#27293) - Silent stacktraces were red herrings because step printing got broken by a bad merge. Issue #27287 Co-authored-by: tennessee.carmelveilleux@gmail.com --- src/python_testing/matter_testing_support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python_testing/matter_testing_support.py b/src/python_testing/matter_testing_support.py index b9a9add64bc46e..9f72c6af858784 100644 --- a/src/python_testing/matter_testing_support.py +++ b/src/python_testing/matter_testing_support.py @@ -509,8 +509,8 @@ async def send_single_cmd( result = await dev_ctrl.SendCommand(nodeid=node_id, endpoint=endpoint, payload=cmd, timedRequestTimeoutMs=timedRequestTimeoutMs) return result - def print_step(self, stepnum: int, title: str) -> None: - logging.info('***** Test Step %d : %s', stepnum, title) + def print_step(self, stepnum: typing.Union[int, str], title: str) -> None: + logging.info(f'***** Test Step {stepnum} : {title}') def record_error(self, test_name: str, location: Union[AttributePathLocation, EventPathLocation, CommandPathLocation], problem: str, spec_location: str = ""): self.problems.append(ProblemNotice(test_name, location, ProblemSeverity.ERROR, problem, spec_location))