From b2e6dd5fb7bd620fa717c2fc8e3a61c6a8b970b7 Mon Sep 17 00:00:00 2001 From: Jake Ororke Date: Tue, 29 Oct 2024 13:39:04 -0700 Subject: [PATCH] Update TC_CADMIN_1_19.py - Moved location of print_step to top of for range for creating virtual fragments - Removed unnecessary print_step for catching error --- src/python_testing/TC_CADMIN_1_19.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/python_testing/TC_CADMIN_1_19.py b/src/python_testing/TC_CADMIN_1_19.py index 90e9c7375592a4..d9502db95383a9 100644 --- a/src/python_testing/TC_CADMIN_1_19.py +++ b/src/python_testing/TC_CADMIN_1_19.py @@ -107,6 +107,7 @@ async def test_TC_CADMIN_1_19(self): fids = {} self.print_step("total fabrics", max_fabrics - initial_number_of_fabrics) for fid in range(1, max_fabrics - initial_number_of_fabrics): + self.print_step("commissioning iteration", fid) # Make sure that current test step is 5, resets here after each loop self.current_step_index = 5 @@ -122,8 +123,6 @@ async def test_TC_CADMIN_1_19(self): nodeId=self.dut_node_id, setupPinCode=params.commissioningParameters.setupPinCode, filterType=ChipDeviceCtrl.DiscoveryFilterType.LONG_DISCRIMINATOR, filter=params.randomDiscriminator) - self.print_step("commissioning iteration", fid) - self.step(6) # TH reads the CommissionedFabrics attributes from the Node Operational Credentials cluster current_fabrics = await self.read_single_attribute_check_success(dev_ctrl=self.th1, fabric_filtered=False, endpoint=0, cluster=OC_cluster, attribute=OC_cluster.Attributes.SupportedFabrics) @@ -145,7 +144,6 @@ async def test_TC_CADMIN_1_19(self): filterType=ChipDeviceCtrl.DiscoveryFilterType.LONG_DISCRIMINATOR, filter=params.randomDiscriminator) except ChipStackError as e: - self.print_step("err", e.err) # When attempting to create a new controller we are expected to get the following response: # src/credentials/FabricTable.cpp:833: CHIP Error 0x0000000B: No memory # Since the FabricTable is full and unable to create any new fabrics