Skip to content

Commit

Permalink
[TC-RVC-2.1] Fix PIXIT codes to match the test plan (#28481)
Browse files Browse the repository at this point in the history
* fix PIXIT codes to match tp

* fix PIXIT
  • Loading branch information
duyen-tran authored Aug 2, 2023
1 parent 7f99c44 commit 912339d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions src/python_testing/TC_RVCCLEANM_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# This test requires several additional command line arguments
# run with
# --int-arg PIXIT_ENDPOINT:<endpoint> PIXIT_MODEOK:<mode id> PIXIT_MODEFAIL:<mode id>
# --int-arg PIXIT_ENDPOINT:<endpoint> PIXIT.RVCCLEANM.MODE_CHANGE_OK:<mode id> PIXIT.RVCCLEANM.MODE_CHANGE_FAIL:<mode id>


class TC_RVCCLEANM_2_1(MatterBaseTest):
Expand All @@ -44,16 +44,16 @@ async def test_TC_RVCCLEANM_2_1(self):
asserts.assert_true('PIXIT_ENDPOINT' in self.matter_test_config.global_test_params,
"PIXIT_ENDPOINT must be included on the command line in "
"the --int-arg flag as PIXIT_ENDPOINT:<endpoint>")
asserts.assert_true('PIXIT_MODEOK' in self.matter_test_config.global_test_params,
"PIXIT_MODEOK must be included on the command line in "
"the --int-arg flag as PIXIT_MODEOK:<mode id>")
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.RVCCLEANM.MODE_CHANGE_OK' in self.matter_test_config.global_test_params,
"PIXIT.RVCCLEANM.MODE_CHANGE_OK must be included on the command line in "
"the --int-arg flag as PIXIT.RVCCLEANM.MODE_CHANGE_OK:<mode id>")
asserts.assert_true('PIXIT.RVCCLEANM.MODE_CHANGE_FAIL' in self.matter_test_config.global_test_params,
"PIXIT.RVCCLEANM.MODE_CHANGE_FAIL must be included on the command line in "
"the --int-arg flag as PIXIT.RVCCLEANM.MODE_CHANGE_FAIL:<mode id>")

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.modeok = self.matter_test_config.global_test_params['PIXIT.RVCCLEANM.MODE_CHANGE_OK']
self.modefail = self.matter_test_config.global_test_params['PIXIT.RVCCLEANM.MODE_CHANGE_FAIL']

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
18 changes: 9 additions & 9 deletions src/python_testing/TC_RVCRUNM_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# This test requires several additional command line arguments
# run with
# --int-arg PIXIT_ENDPOINT:<endpoint> PIXIT_MODEOK:<mode id> PIXIT_MODEFAIL:<mode id>
# --int-arg PIXIT_ENDPOINT:<endpoint> PIXIT.RVCRUNM.MODE_CHANGE_OK:<mode id> PIXIT.RVCRUNM.MODE_CHANGE_FAIL:<mode id>


class TC_RVCRUNM_2_1(MatterBaseTest):
Expand All @@ -44,16 +44,16 @@ async def test_TC_RVCRUNM_2_1(self):
asserts.assert_true('PIXIT_ENDPOINT' in self.matter_test_config.global_test_params,
"PIXIT_ENDPOINT must be included on the command line in "
"the --int-arg flag as PIXIT_ENDPOINT:<endpoint>")
asserts.assert_true('PIXIT_MODEOK' in self.matter_test_config.global_test_params,
"PIXIT_MODEOK must be included on the command line in "
"the --int-arg flag as PIXIT_MODEOK:<mode id>")
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.RVCRUNM.MODE_CHANGE_OK' in self.matter_test_config.global_test_params,
"PIXIT.RVCRUNM.MODE_CHANGE_OK must be included on the command line in "
"the --int-arg flag as PIXIT.RVCRUNM.MODE_CHANGE_OK:<mode id>")
asserts.assert_true('PIXIT.RVCRUNM.MODE_CHANGE_FAIL' in self.matter_test_config.global_test_params,
"PIXIT.RVCRUNM.MODE_CHANGE_FAIL must be included on the command line in "
"the --int-arg flag as PIXIT.RVCRUNM.MODE_CHANGE_FAIL:<mode id>")

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.modeok = self.matter_test_config.global_test_params['PIXIT.RVCRUNM.MODE_CHANGE_OK']
self.modefail = self.matter_test_config.global_test_params['PIXIT.RVCRUNM.MODE_CHANGE_FAIL']

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

0 comments on commit 912339d

Please sign in to comment.