Skip to content

Commit

Permalink
use pics instead of pixit (#28415)
Browse files Browse the repository at this point in the history
  • Loading branch information
duyen-tran authored and pull[bot] committed Oct 24, 2023
1 parent 60e561b commit edbc6e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/python_testing/TC_RVCCLEANM_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:<mode id>")
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:<true/false>")

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")
Expand Down Expand Up @@ -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")

Expand Down
6 changes: 1 addition & 5 deletions src/python_testing/TC_RVCRUNM_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:<mode id>")
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:<true/false>")

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")
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit edbc6e1

Please sign in to comment.