From 10741305d59c5d5b964be8c52723d2eb89c7f8cd Mon Sep 17 00:00:00 2001 From: Matt Hazley Date: Tue, 19 Sep 2023 01:08:55 +0100 Subject: [PATCH] Fix incorrect PICS in `TC_RVCOPSTATE_2_1.py` and `TC_OPSTATE_2_1.py` (#29323) * Fixed incorrect PICS.\nFixes #29321 * Fixing incorrect PICS --- src/python_testing/TC_OPSTATE_2_1.py | 2 +- src/python_testing/TC_RVCOPSTATE_2_1.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python_testing/TC_OPSTATE_2_1.py b/src/python_testing/TC_OPSTATE_2_1.py index 1b0e253f4aeb11..f532a1cdfecb08 100644 --- a/src/python_testing/TC_OPSTATE_2_1.py +++ b/src/python_testing/TC_OPSTATE_2_1.py @@ -175,7 +175,7 @@ async def test_TC_OPSTATE_2_1(self): self.print_step("7e", "Manually put the device in the unable to complete operation error state") input("Press Enter when done.\n") await self.read_and_validate_operror(step="7f", expected_error=Clusters.OperationalState.Enums.ErrorStateEnum.kUnableToCompleteOperation) - if self.check_pics("OPSTATE.S.M.ERR_COMMAND_INVALID_STATE"): + if self.check_pics("OPSTATE.S.M.ERR_COMMAND_INVALID_IN_STATE"): self.print_step("7g", "Manually put the device in the command invalid error state") input("Press Enter when done.\n") await self.read_and_validate_operror(step="7h", expected_error=Clusters.OperationalState.Enums.ErrorStateEnum.kCommandInvalidInState) diff --git a/src/python_testing/TC_RVCOPSTATE_2_1.py b/src/python_testing/TC_RVCOPSTATE_2_1.py index 29d2757363a726..58c012c459ec86 100644 --- a/src/python_testing/TC_RVCOPSTATE_2_1.py +++ b/src/python_testing/TC_RVCOPSTATE_2_1.py @@ -190,11 +190,11 @@ async def test_TC_RVCOPSTATE_2_1(self): self.print_step("7e", "Manually put the device in the unable to complete operation error state") input("Press Enter when done.\n") await self.read_and_validate_operror(step="7f", expected_error=Clusters.OperationalState.Enums.ErrorStateEnum.kUnableToCompleteOperation) - if self.check_pics("RVCOPSTATE.S.M.ERR_COMMAND_INVALID_STATE"): + if self.check_pics("RVCOPSTATE.S.M.ERR_COMMAND_INVALID_IN_STATE"): self.print_step("7g", "Manually put the device in the command invalid error state") input("Press Enter when done.\n") await self.read_and_validate_operror(step="7h", expected_error=Clusters.OperationalState.Enums.ErrorStateEnum.kCommandInvalidInState) - if self.check_pics("RVCOPSTATE.S.M.ERR_FAILED_FIND_DOCK"): + if self.check_pics("RVCOPSTATE.S.M.ERR_FAILED_TO_FIND_CHARGING_DOCK"): self.print_step("7i", "Manually put the device in the failed to find dock error state") input("Press Enter when done.\n") await self.read_and_validate_operror(step="7j", expected_error=Clusters.RvcOperationalState.Enums.ErrorStateEnum.kFailedToFindChargingDock)