From bde91fbd3272c4cc0bc7a97532a0a4579421db52 Mon Sep 17 00:00:00 2001 From: Rob Bultman Date: Tue, 18 Jun 2024 12:25:39 -0400 Subject: [PATCH 1/6] Update tests per TP changes. --- src/python_testing/TC_MWOCTRL_2_1.py | 47 +++++++++- src/python_testing/TC_MWOCTRL_2_4.py | 11 ++- src/python_testing/TC_MWOCTRL_2_5.py | 123 +++++++++++++++++++++++++++ 3 files changed, 178 insertions(+), 3 deletions(-) create mode 100644 src/python_testing/TC_MWOCTRL_2_5.py diff --git a/src/python_testing/TC_MWOCTRL_2_1.py b/src/python_testing/TC_MWOCTRL_2_1.py index 658bdb3ae8e431..de7f03db789d89 100644 --- a/src/python_testing/TC_MWOCTRL_2_1.py +++ b/src/python_testing/TC_MWOCTRL_2_1.py @@ -38,14 +38,30 @@ async def set_cook_time_expect_success(self, endpoint, value): except InteractionModelError as e: asserts.assert_equal(e.status, Status.Success, "Unexpected error returned") - async def set_bad_cook_time_value_expect_failure(self, endpoint, value): + async def set_bad_cook_time_value_expect_failure(self, endpoint, value, expectedError=Status.ConstraintError): commands = Clusters.Objects.MicrowaveOvenControl.Commands try: await self.send_single_cmd(cmd=commands.SetCookingParameters(cookTime=value), endpoint=endpoint) asserts.assert_fail("Expected an exception but received none.") + except InteractionModelError as e: + asserts.assert_equal(e.status, expectedError, "Unexpected error received.") + + async def set_bad_cook_mode_value_expect_failure(self, endpoint, value): + commands = Clusters.Objects.MicrowaveOvenControl.Commands + try: + await self.send_single_cmd(cmd=commands.SetCookingParameters(cookMode=value), endpoint=endpoint) + asserts.assert_fail("Expected an exception but received none.") except InteractionModelError as e: asserts.assert_equal(e.status, Status.ConstraintError, "Expected a CONSTRAINT_ERROR but got a different response.") + async def send_bad_command_expect_failure(self, endpoint): + commands = Clusters.Objects.MicrowaveOvenControl.Commands + try: + await self.send_single_cmd(cmd=commands.SetCookingParameters(startAfterSetting=1), endpoint=endpoint) + asserts.assert_fail("Expected an exception but received none.") + except InteractionModelError as e: + asserts.assert_equal(e.status, Status.InvalidCmmand, "Expected a INVALID_COMMAND but got a different response.") + async def read_and_check_cook_time_value(self, endpoint, value): attributes = Clusters.MicrowaveOvenControl.Attributes cooktime = await self.read_mwoctrl_attribute_expect_success(endpoint=endpoint, attribute=attributes.CookTime) @@ -75,6 +91,13 @@ def steps_TC_MWOCTRL_2_1(self) -> list[TestStep]: TestStep(10, "Read the WattRating attribute, if supported", "Verify that the DUT response contains a uint16 value."), TestStep(11, "Set the CookTime attribute to 0", "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"), TestStep(12, "Set the CookTime attribute to MaxCookTime+1", "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"), + TestStep(13, "Set the CookMode attribute to 250", "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"), + + TestStep(14, "Manually set DUT into a state where it will respond with INVALID_IN_STATE", ""), + TestStep(15, "Set the CookTime attribute to 60", "Verify DUT responds w/ INVALID_IN_STATE(0xCB)"), + + TestStep(16, "Manually set DUT into a state where it will respond with INVALID_COMMAND", ""), + TestStep(17, "Send the SetCookingParameters command with StartAfterSetting to True", "Verify DUT responds w/ INVALID_COMMAND(0x85)"), ] return steps @@ -131,6 +154,28 @@ async def test_TC_MWOCTRL_2_1(self): self.step(12) await self.set_bad_cook_time_value_expect_failure(endpoint, maxCookTime+1) + self.step(13) + await self.set_bad_cook_mode_value_expect_failure(endpoint, 250) + + if self.check_pics("MWOCTRL.S.M.ManualSetInvalidInState"): + self.step(14) + input("Press Enter when done.\n") + + self.step(15) + await self.set_bad_cook_time_value_expect_failure(endpoint, maxCookTime+1, Status.InvalidInState) + else: + self.skip_step(14) + self.skip_step(15) + + if self.check_pics("MWOCTRL.S.M.ManualSetInvalidCommand"): + self.step(16) + input("Press Enter when done.\n") + + self.step(17) + await self.send_bad_command_expect_failure(endpoint) + else: + self.skip_step(16) + self.skip_step(17) if __name__ == "__main__": default_matter_test_main() diff --git a/src/python_testing/TC_MWOCTRL_2_4.py b/src/python_testing/TC_MWOCTRL_2_4.py index 8cb3885ada0613..6dd4314ae3359c 100644 --- a/src/python_testing/TC_MWOCTRL_2_4.py +++ b/src/python_testing/TC_MWOCTRL_2_4.py @@ -41,8 +41,9 @@ def steps_TC_MWOCTRL_2_4(self) -> list[TestStep]: TestStep(1, "Commissioning, already done", is_commissioning=True), TestStep(2, "Read the SupportedWatts attribute"), TestStep(3, "Read the SelectedWattIndex attribute"), - TestStep(4, "Send the SetCookingParameters command"), + TestStep(4, "Send the SetCookingParameters command", "Verify DUT responds w/ status SUCCESS(0x00)."), TestStep(5, "Read and verify the SelectedWattIndex attribute"), + TestStep(6, "Try to set SelectedWattIndex to an invalid value.", "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"), ] return steps @@ -88,12 +89,18 @@ async def test_TC_MWOCTRL_2_4(self): await self.send_single_cmd(cmd=commands.SetCookingParameters(wattSettingIndex=newWattIndex), endpoint=endpoint) except InteractionModelError as e: asserts.assert_equal(e.status, Status.Success, "Unexpected error returned") - pass self.step(5) selectedWattIndex = await self.read_mwoctrl_attribute_expect_success(endpoint=endpoint, attribute=attributes.SelectedWattIndex) asserts.assert_true(selectedWattIndex == newWattIndex, "SelectedWattIndex was not correctly set") + self.step(6) + newWattIndex = len(supportedWattsList) + try: + await self.send_single_cmd(cmd=commands.SetCookingParameters(wattSettingIndex=newWattIndex), endpoint=endpoint) + except InteractionModelError as e: + asserts.assert_equal(e.status, Status.ConstraintError, "Unexpected error returned") + if __name__ == "__main__": default_matter_test_main() diff --git a/src/python_testing/TC_MWOCTRL_2_5.py b/src/python_testing/TC_MWOCTRL_2_5.py new file mode 100644 index 00000000000000..b0aa8e37b5a5ae --- /dev/null +++ b/src/python_testing/TC_MWOCTRL_2_5.py @@ -0,0 +1,123 @@ +# +# Copyright (c) 2024 Project CHIP Authors +# All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +import chip.clusters as Clusters +from chip.interaction_model import InteractionModelError, Status +from matter_testing_support import MatterBaseTest, TestStep, async_test_body, default_matter_test_main +from mobly import asserts +import logging + +# This test requires several additional command line arguments +# run with +# --endpoint endpoint + + +class TC_MWOCTRL_2_5(MatterBaseTest): + + async def read_mwoctrl_attribute_expect_success(self, endpoint, attribute): + cluster = Clusters.Objects.MicrowaveOvenControl + return await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=attribute) + + async def set_cook_time_expect_success(self, endpoint, value): + commands = Clusters.Objects.MicrowaveOvenControl.Commands + try: + await self.send_single_cmd(cmd=commands.SetCookingParameters(cookTime=value), endpoint=endpoint) + except InteractionModelError as e: + asserts.assert_equal(e.status, Status.Success, "Unexpected error returned") + + async def send_add_more_time_command_expect_response(self, endpoint, value, expectedError = Status.Success): + commands = Clusters.Objects.MicrowaveOvenControl.Commands + try: + await self.send_single_cmd(cmd=commands.AddMoreTime(timeToAdd=value), endpoint=endpoint) + asserts.assert_equal(Status.Success, expectedError, "No error occured but unexpected response received.") + except InteractionModelError as e: + asserts.assert_equal(e.status, expectedError, "Unexpected error response received.") + + async def read_and_check_cook_time_value(self, endpoint, value): + attributes = Clusters.MicrowaveOvenControl.Attributes + cooktime = await self.read_mwoctrl_attribute_expect_success(endpoint=endpoint, attribute=attributes.CookTime) + asserts.assert_equal(cooktime, value, "Cooktime value not as expected") + + def desc_TC_MWOCTRL_2_5(self) -> str: + return "[TC-MWOCTRL-2.1] Primary functionality with DUT as Server" + + def steps_TC_MWOCTRL_2_5(self) -> list[TestStep]: + steps = [ + TestStep(1, "Commissioning, already done", is_commissioning=True), + TestStep(2, "Set the CookTime attribute to 60", + "Verify DUT responds w/ status SUCCESS(0x00)." + ), + TestStep(3, "Send the AddMoreTime command with a value of 30.", + "Verify DUT responds w/ status SUCCESS(0x00)." + ), + TestStep(4, "Read the CookTime attribute and verify it is 90", + "Verify DUT responds w/ a value of 90."), + TestStep(5, "Read the MaxCookTime attribute", + "Save the response as MaxCookTime"), + TestStep(6, "Send the AddMoreTime command with a value of MaxCookTime+1.", + "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)." + ), + TestStep(7, "Manually set the device into a state where it will respond with INVALID_IN_STATE for the AddMoreTime command."), + TestStep(8, "Send the AddMoreTime command with a value of 30.", + "Verify DUT responds w/ status INVALID_IN_STATE(0xCB)." + ), + ] + return steps + + def pics_TC_MWOCTRL_2_5(self) -> list[str]: + pics = [ + "MWOCTRL.S", + "MWOCTRL.SC.ADD_MORE_TIME" + ] + return pics + + @async_test_body + async def test_TC_MWOCTRL_2_5(self): + + endpoint = self.user_params.get("endpoint", 1) + + self.step(1) + attributes = Clusters.MicrowaveOvenControl.Attributes + + self.step(2) + await self.set_cook_time_expect_success(endpoint, 60) + + self.step(3) + await self.send_add_more_time_command_expect_response(endpoint, 30) + + self.step(4) + await self.read_and_check_cook_time_value(endpoint, 90) + + self.step(5) + maxCookTime = await self.read_mwoctrl_attribute_expect_success(endpoint=endpoint, attribute=attributes.MaxCookTime) + + self.step(6) + await self.send_add_more_time_command_expect_response(endpoint, maxCookTime+1, Status.ConstraintError) + + if self.check_pics("MWOCTRL.S.M.ManualInvalidAddTime"): + self.step(7) + input("Press Enter when done.\n") + + self.step(8) + await self.send_add_more_time_command_expect_response(endpoint, 30, Status.InvalidInState) + else: + self.skip_step(7) + self.skip_step(8) + + +if __name__ == "__main__": + default_matter_test_main() From 01326415d1011fcf81ba988dbe242dc9649d1175 Mon Sep 17 00:00:00 2001 From: Rob Bultman Date: Tue, 18 Jun 2024 12:26:58 -0400 Subject: [PATCH 2/6] Removed YAML file no longer needed. --- .../certification/Test_TC_MWOCTRL_2_5.yaml | 55 ------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/app/tests/suites/certification/Test_TC_MWOCTRL_2_5.yaml diff --git a/src/app/tests/suites/certification/Test_TC_MWOCTRL_2_5.yaml b/src/app/tests/suites/certification/Test_TC_MWOCTRL_2_5.yaml deleted file mode 100644 index d69e23f0f86e73..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_MWOCTRL_2_5.yaml +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright (c) 2024 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: 263.1.1. [TC-MWOCTRL-2.5] Add more time command with DUT as Server - -PICS: - - MWOCTRL.S - - MWOCTRL.S.C01.Rsp - -config: - nodeId: 0x12344321 - cluster: "Microwave Oven Control" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: Send the SetCookingParameters command" - command: "SetCookingParameters" - arguments: - values: - - name: CookTime - value: 60 - - - label: "Step 3: Send the AddMoreTime command" - command: "AddMoreTime" - arguments: - values: - - name: TimeToAdd - value: 30 - - - label: "Step 4: Read the CookTime attribute" - command: "readAttribute" - attribute: "CookTime" - response: - value: 90 - constraints: - type: elapsed_s From 7c1bd4433a271bbf02b206431db0d6de017ff94e Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 18 Jun 2024 16:34:52 +0000 Subject: [PATCH 3/6] Restyled by autopep8 --- src/python_testing/TC_MWOCTRL_2_1.py | 10 ++++++---- src/python_testing/TC_MWOCTRL_2_4.py | 3 ++- src/python_testing/TC_MWOCTRL_2_5.py | 6 +++--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/python_testing/TC_MWOCTRL_2_1.py b/src/python_testing/TC_MWOCTRL_2_1.py index de7f03db789d89..8afead1e89e48e 100644 --- a/src/python_testing/TC_MWOCTRL_2_1.py +++ b/src/python_testing/TC_MWOCTRL_2_1.py @@ -97,7 +97,8 @@ def steps_TC_MWOCTRL_2_1(self) -> list[TestStep]: TestStep(15, "Set the CookTime attribute to 60", "Verify DUT responds w/ INVALID_IN_STATE(0xCB)"), TestStep(16, "Manually set DUT into a state where it will respond with INVALID_COMMAND", ""), - TestStep(17, "Send the SetCookingParameters command with StartAfterSetting to True", "Verify DUT responds w/ INVALID_COMMAND(0x85)"), + TestStep(17, "Send the SetCookingParameters command with StartAfterSetting to True", + "Verify DUT responds w/ INVALID_COMMAND(0x85)"), ] return steps @@ -165,8 +166,8 @@ async def test_TC_MWOCTRL_2_1(self): await self.set_bad_cook_time_value_expect_failure(endpoint, maxCookTime+1, Status.InvalidInState) else: self.skip_step(14) - self.skip_step(15) - + self.skip_step(15) + if self.check_pics("MWOCTRL.S.M.ManualSetInvalidCommand"): self.step(16) input("Press Enter when done.\n") @@ -175,7 +176,8 @@ async def test_TC_MWOCTRL_2_1(self): await self.send_bad_command_expect_failure(endpoint) else: self.skip_step(16) - self.skip_step(17) + self.skip_step(17) + if __name__ == "__main__": default_matter_test_main() diff --git a/src/python_testing/TC_MWOCTRL_2_4.py b/src/python_testing/TC_MWOCTRL_2_4.py index 6dd4314ae3359c..7e61a40d81e818 100644 --- a/src/python_testing/TC_MWOCTRL_2_4.py +++ b/src/python_testing/TC_MWOCTRL_2_4.py @@ -43,7 +43,8 @@ def steps_TC_MWOCTRL_2_4(self) -> list[TestStep]: TestStep(3, "Read the SelectedWattIndex attribute"), TestStep(4, "Send the SetCookingParameters command", "Verify DUT responds w/ status SUCCESS(0x00)."), TestStep(5, "Read and verify the SelectedWattIndex attribute"), - TestStep(6, "Try to set SelectedWattIndex to an invalid value.", "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"), + TestStep(6, "Try to set SelectedWattIndex to an invalid value.", + "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"), ] return steps diff --git a/src/python_testing/TC_MWOCTRL_2_5.py b/src/python_testing/TC_MWOCTRL_2_5.py index b0aa8e37b5a5ae..e444ec61e0b1a4 100644 --- a/src/python_testing/TC_MWOCTRL_2_5.py +++ b/src/python_testing/TC_MWOCTRL_2_5.py @@ -39,7 +39,7 @@ async def set_cook_time_expect_success(self, endpoint, value): except InteractionModelError as e: asserts.assert_equal(e.status, Status.Success, "Unexpected error returned") - async def send_add_more_time_command_expect_response(self, endpoint, value, expectedError = Status.Success): + async def send_add_more_time_command_expect_response(self, endpoint, value, expectedError=Status.Success): commands = Clusters.Objects.MicrowaveOvenControl.Commands try: await self.send_single_cmd(cmd=commands.AddMoreTime(timeToAdd=value), endpoint=endpoint) @@ -116,8 +116,8 @@ async def test_TC_MWOCTRL_2_5(self): await self.send_add_more_time_command_expect_response(endpoint, 30, Status.InvalidInState) else: self.skip_step(7) - self.skip_step(8) - + self.skip_step(8) + if __name__ == "__main__": default_matter_test_main() From a8427d20d54f28d38f812a74aab9e46b7b834def Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 18 Jun 2024 16:34:53 +0000 Subject: [PATCH 4/6] Restyled by isort --- src/python_testing/TC_MWOCTRL_2_5.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python_testing/TC_MWOCTRL_2_5.py b/src/python_testing/TC_MWOCTRL_2_5.py index e444ec61e0b1a4..ff945934b095dc 100644 --- a/src/python_testing/TC_MWOCTRL_2_5.py +++ b/src/python_testing/TC_MWOCTRL_2_5.py @@ -15,11 +15,12 @@ # limitations under the License. # +import logging + import chip.clusters as Clusters from chip.interaction_model import InteractionModelError, Status from matter_testing_support import MatterBaseTest, TestStep, async_test_body, default_matter_test_main from mobly import asserts -import logging # This test requires several additional command line arguments # run with From fcffd5b3f2931f230b3e9067f82b8f2ed25d497f Mon Sep 17 00:00:00 2001 From: Rob Bultman Date: Tue, 18 Jun 2024 12:48:06 -0400 Subject: [PATCH 5/6] Test added to CI. --- .github/workflows/tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e2dbd5f707334a..59b9ee30c4c217 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -551,6 +551,7 @@ jobs: scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-microwave-oven-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-microwave-oven-app --factoryreset --quiet --app-args "--discriminator 1234 --KVS kvs1 --trace_file json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_MWOCTRL_2_1.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"' scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-microwave-oven-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-microwave-oven-app --factoryreset --quiet --app-args "--discriminator 1234 --KVS kvs1 --trace_file json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_MWOCTRL_2_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"' scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-microwave-oven-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-microwave-oven-app --factoryreset --quiet --app-args "--discriminator 1234 --KVS kvs1 --trace_file json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_MWOCTRL_2_4.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"' + scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-microwave-oven-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-microwave-oven-app --factoryreset --quiet --app-args "--discriminator 1234 --KVS kvs1 --trace_file json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_MWOCTRL_2_5.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"' scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-microwave-oven-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-microwave-oven-app --factoryreset --quiet --app-args "--discriminator 1234 --KVS kvs1 --trace_file json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_MWOM_1_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"' scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-rvc-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-rvc-app --factoryreset --quiet --app-args "--discriminator 1234 --KVS kvs1 --trace_file json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_RVCRUNM_1_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS examples/rvc-app/rvc-common/pics/rvc-app-pics-values --endpoint 1 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"' scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-rvc-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-rvc-app --factoryreset --quiet --app-args "--discriminator 1234 --KVS kvs1 --trace_file json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_RVCRUNM_2_1.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS examples/rvc-app/rvc-common/pics/rvc-app-pics-values --endpoint 1 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto --int-arg PIXIT.RVCRUNM.MODE_CHANGE_OK:0 PIXIT.RVCRUNM.MODE_CHANGE_FAIL:2"' From 8461a18bf50c3f97b29efb3031565e1be49e0cf8 Mon Sep 17 00:00:00 2001 From: Rob Bultman Date: Tue, 18 Jun 2024 12:59:44 -0400 Subject: [PATCH 6/6] Removed unused import --- src/python_testing/TC_MWOCTRL_2_5.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/python_testing/TC_MWOCTRL_2_5.py b/src/python_testing/TC_MWOCTRL_2_5.py index ff945934b095dc..d713abca689434 100644 --- a/src/python_testing/TC_MWOCTRL_2_5.py +++ b/src/python_testing/TC_MWOCTRL_2_5.py @@ -15,8 +15,6 @@ # limitations under the License. # -import logging - import chip.clusters as Clusters from chip.interaction_model import InteractionModelError, Status from matter_testing_support import MatterBaseTest, TestStep, async_test_body, default_matter_test_main