From 632bab284ce1a6cba7280b1ebf65c0c25a2df288 Mon Sep 17 00:00:00 2001 From: cecille Date: Wed, 6 Mar 2024 10:58:08 -0500 Subject: [PATCH] Python spec parsing: Derived cluster grammar changed. The grammar for how command directions are inidcated changed in the underlying files. This affected derived clusters. Test updated to use the new grammar, meta-test updated. --- src/python_testing/TestSpecParsingSupport.py | 6 +++--- src/python_testing/spec_parsing_support.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/python_testing/TestSpecParsingSupport.py b/src/python_testing/TestSpecParsingSupport.py index 2ff80e55244648..44ab8dfff26b2a 100644 --- a/src/python_testing/TestSpecParsingSupport.py +++ b/src/python_testing/TestSpecParsingSupport.py @@ -119,7 +119,7 @@ def get_access_enum_from_string(access_str: str) -> Clusters.AccessControl.Enums ' ' ' ' ' ' - ' ' + ' ' ' ' ' ' ' ' @@ -164,11 +164,11 @@ def get_access_enum_from_string(access_str: str) -> Clusters.AccessControl.Enums ' ' ' ' ' ' - ' ' + ' ' ' ' ' ' ' ' - ' ' + ' ' ' ' ' ' ' ' diff --git a/src/python_testing/spec_parsing_support.py b/src/python_testing/spec_parsing_support.py index 6a9d1f87ae3442..9982b8dff55edd 100644 --- a/src/python_testing/spec_parsing_support.py +++ b/src/python_testing/spec_parsing_support.py @@ -358,7 +358,7 @@ def get_command_type(self, element: ElementTree.Element) -> CommandType: return CommandType.ACCEPTED raise Exception(f"Unknown direction: {element.attrib['direction']}") except KeyError: - return CommandType.ACCEPTED + return CommandType.UNKNOWN def parse_unknown_commands(self) -> list[XmlCommand]: commands = []