diff --git a/src/python_testing/TC_PWRTL_2_1.py b/src/python_testing/TC_PWRTL_2_1.py index 8229f3bef96dac..6031ac3a426374 100644 --- a/src/python_testing/TC_PWRTL_2_1.py +++ b/src/python_testing/TC_PWRTL_2_1.py @@ -66,6 +66,10 @@ async def test_TC_PWRTL_2_1(self): asserts.assert_less_equal(len(available_endpoints), 21, "AvailableEndpoints length %d must be less than 21!" % len(available_endpoints)) + else: + logging.info('Skipping test as available endpoints attribute ID not in attribute list on DUT') + return + self.print_step(3, "Read ActiveEndpoints attribute") if act_endpoints_attr_id in attribute_list: active_endpoints = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=Clusters.Objects.PowerTopology, attribute=attributes.ActiveEndpoints) @@ -75,6 +79,9 @@ async def test_TC_PWRTL_2_1(self): asserts.assert_true(active_endpoints == NullValue or active_endpoints == [], "ActiveEndpoints should be null when AvailableEndpoints is null: %s" % active_endpoints) + else: + logging.info('Skipping test as active endpoints attribute ID not in attribute list on DUT') + return if __name__ == "__main__": default_matter_test_main()