From 66bdf5b54d0369462da2192c8e0f1488d45be45e Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Tue, 23 Sep 2025 08:40:14 +0200 Subject: [PATCH] fix(test_apps): reflect changes in component_deps.dot in the g1_components test The commit 51f3c021158d ("Add quotes around node ID in dependency graph") introduced proper quoting for node IDs in the generated dot file. Since the dot format does not allow dashes in node names without quoting, and dashes are used in component names, the component names in the generated dot file are now correctly quoted. Adjust the g1_components test to accommodate this change by stripping the quotes. Signed-off-by: Frantisek Hrbata --- tools/test_apps/system/g1_components/check_dependencies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test_apps/system/g1_components/check_dependencies.py b/tools/test_apps/system/g1_components/check_dependencies.py index 3f0e8e7c1b..08a7f310f2 100644 --- a/tools/test_apps/system/g1_components/check_dependencies.py +++ b/tools/test_apps/system/g1_components/check_dependencies.py @@ -26,8 +26,8 @@ def parse_dependencies(file_path: str) -> Tuple[Dict[str, List[str]], List[str]] parts = line.split(' -> ') if (len(parts) >= 2): - source = parts[0] - target = parts[1].split()[0] # Extracting the target component + source = parts[0].strip('"') + target = parts[1].split()[0].strip('"') # Extracting the target component logging.debug(f'Parsed dependency: {source} -> {target}') # Check that g1/g0 dependencies are either on the list of expected violations