Skip to content

Commit a736448

Browse files
fhrbataespressif-bot
authored andcommitted
fix(test_apps): reflect changes in component_deps.dot in the g1_components test
The commit 51f3c02 ("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 <[email protected]>
1 parent a36c8b8 commit a736448

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/test_apps/system/g1_components/check_dependencies.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ def parse_dependencies(file_path: str, target: str | None = None) -> tuple[dict[
115115
parts = line.split(' -> ')
116116

117117
if len(parts) >= 2:
118-
source_component = parts[0]
119-
target_component = parts[1].split()[0] # Extracting the target component
118+
source_component = parts[0].strip('"')
119+
target_component = parts[1].split()[0].strip('"') # Extracting the target component
120+
print(f'{source_component} -> {target_component}')
120121
logging.debug(f'Parsed dependency: {source_component} -> {target_component}')
121122

122123
# Check that g1/g0 dependencies are either on the list of expected violations

0 commit comments

Comments
 (0)