From 41e1ce1614711d09b08e245fe63610602fa56ca8 Mon Sep 17 00:00:00 2001 From: cecille Date: Wed, 17 Jan 2024 15:43:29 -0500 Subject: [PATCH] Remove workaround for global attrs --- src/python_testing/TC_AccessChecker.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/python_testing/TC_AccessChecker.py b/src/python_testing/TC_AccessChecker.py index 173d15ae191100..9d5c93324b1b8f 100644 --- a/src/python_testing/TC_AccessChecker.py +++ b/src/python_testing/TC_AccessChecker.py @@ -162,10 +162,7 @@ async def _run_write_access_test_for_cluster_privilege(self, endpoint_id, cluste resp = await self.TH2.WriteAttribute(nodeid=self.dut_node_id, attributes=[(endpoint_id, attribute(val))]) if spec_requires == Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kUnknownEnumValue: # not writeable - expect an unsupported write response - # Global vars currently return the wrong error code - see #31448 - ok = (is_global(attribute.attribute_id) and resp[0].Status == - Status.UnsupportedAttribute) or resp[0].Status == Status.UnsupportedWrite - if not ok: + if resp[0].Status != Status.UnsupportedWrite: self.record_error(test_name=test_name, location=location, problem=f"Unexpected error writing non-writeable attribute - expected Unsupported Write, got {resp[0].Status}") self.success = False