From 94a578477996051d927e8f189b783a48eb703364 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Fri, 19 May 2023 17:28:53 +0200 Subject: [PATCH] [chiptool.py] Runner is not logging skipped steps as expected (#26681) --- scripts/tests/yaml/tests_logger.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/tests/yaml/tests_logger.py b/scripts/tests/yaml/tests_logger.py index bdfed70030fd83..0f718e243dbbb8 100755 --- a/scripts/tests/yaml/tests_logger.py +++ b/scripts/tests/yaml/tests_logger.py @@ -186,12 +186,13 @@ def test_stop(self, duration: int): def step_skipped(self, name: str, expression: str): print(self.__strings.step_skipped.format(index=self.__index, name=_strikethrough(name))) - self.__index += 1 - self.__skipped += 1 - if self.__use_test_harness_log_format: + print(self.__strings.test_harness_step_start.format(index=self.__index, name=name)) print(self.__strings.test_harness_step_skipped.format(expression=expression)) + self.__index += 1 + self.__skipped += 1 + def step_start(self, name: str): if self.__use_test_harness_log_format: print(self.__strings.test_harness_step_start.format(index=self.__index, name=name))