From 1640500449cc371e0f677fa730940eb550706fa7 Mon Sep 17 00:00:00 2001 From: duyen-tran <129869207+duyen-tran@users.noreply.github.com> Date: Tue, 1 Aug 2023 17:59:07 -0400 Subject: [PATCH] use pics instead of pixit (#28415) --- src/python_testing/TC_RVCCLEANM_2_1.py | 6 +----- src/python_testing/TC_RVCRUNM_2_1.py | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/python_testing/TC_RVCCLEANM_2_1.py b/src/python_testing/TC_RVCCLEANM_2_1.py index 8a2683c2317472..e0b699d8373498 100644 --- a/src/python_testing/TC_RVCCLEANM_2_1.py +++ b/src/python_testing/TC_RVCCLEANM_2_1.py @@ -50,14 +50,10 @@ async def test_TC_RVCCLEANM_2_1(self): asserts.assert_true('PIXIT_MODEFAIL' in self.matter_test_config.global_test_params, "PIXIT_MODEFAIL must be included on the command line in " "the --int-arg flag as PIXIT_MODEFAIL:") - asserts.assert_true('pixit_can_test_mode_failure' in self.matter_test_config.global_test_params, - "PIXIT_CAN_TEST_MODE_FAILURE must be included on the command line in " - "the --bool-arg flag as PIXIT_CAN_TEST_MODE_FAILURE:") self.endpoint = self.matter_test_config.global_test_params['PIXIT_ENDPOINT'] self.modeok = self.matter_test_config.global_test_params['PIXIT_MODEOK'] self.modefail = self.matter_test_config.global_test_params['PIXIT_MODEFAIL'] - self.can_test_mode_failure = self.matter_test_config.global_test_params['pixit_can_test_mode_failure'] asserts.assert_true(self.check_pics("RVCCLEANM.S.A0000"), "RVCCLEANM.S.A0000 must be supported") asserts.assert_true(self.check_pics("RVCCLEANM.S.A0001"), "RVCCLEANM.S.A0001 must be supported") @@ -101,7 +97,7 @@ class CommonCodes(Enum): ret = await self.send_change_to_mode_cmd(newMode=old_current_mode) asserts.assert_true(ret.status == CommonCodes.SUCCESS.value, "Changing the mode to the current mode should be a no-op") - if self.can_test_mode_failure is True: + if self.check_pics("RVCCLEANM.S.M.CAN_TEST_MODE_FAILURE"): self.print_step(5, "Manually put the device in a state from which it will FAIL to transition to mode %d" % (self.modefail)) input("Press Enter when done.\n") diff --git a/src/python_testing/TC_RVCRUNM_2_1.py b/src/python_testing/TC_RVCRUNM_2_1.py index f9bd8937ae59bb..1ef5cefe6525e6 100644 --- a/src/python_testing/TC_RVCRUNM_2_1.py +++ b/src/python_testing/TC_RVCRUNM_2_1.py @@ -50,14 +50,10 @@ async def test_TC_RVCRUNM_2_1(self): asserts.assert_true('PIXIT_MODEFAIL' in self.matter_test_config.global_test_params, "PIXIT_MODEFAIL must be included on the command line in " "the --int-arg flag as PIXIT_MODEFAIL:") - asserts.assert_true('pixit_can_test_mode_failure' in self.matter_test_config.global_test_params, - "PIXIT_CAN_TEST_MODE_FAILURE must be included on the command line in " - "the --bool-arg flag as PIXIT_CAN_TEST_MODE_FAILURE:") self.endpoint = self.matter_test_config.global_test_params['PIXIT_ENDPOINT'] self.modeok = self.matter_test_config.global_test_params['PIXIT_MODEOK'] self.modefail = self.matter_test_config.global_test_params['PIXIT_MODEFAIL'] - self.can_test_mode_failure = self.matter_test_config.global_test_params['pixit_can_test_mode_failure'] asserts.assert_true(self.check_pics("RVCRUNM.S.A0000"), "RVCRUNM.S.A0000 must be supported") asserts.assert_true(self.check_pics("RVCRUNM.S.A0001"), "RVCRUNM.S.A0001 must be supported") @@ -101,7 +97,7 @@ class CommonCodes(Enum): ret = await self.send_change_to_mode_cmd(newMode=old_current_mode) asserts.assert_true(ret.status == CommonCodes.SUCCESS.value, "Changing the mode to the current mode should be a no-op") - if self.can_test_mode_failure is True: + if self.check_pics("RVCRUNM.S.M.CAN_TEST_MODE_FAILURE"): self.print_step(5, "Manually put the device in a state from which it will FAIL to transition to mode %d" % (self.modefail)) input("Press Enter when done.\n")