diff --git a/script/test_build_components.py b/script/test_build_components.py index 4df70c6887..2644d09938 100755 --- a/script/test_build_components.py +++ b/script/test_build_components.py @@ -351,13 +351,16 @@ def run_grouped_component_tests( if platform_filter and not platform.startswith(platform_filter): continue - # Only group if component has valid bus configs + # Create signature for this component's bus configuration + # Components with no buses get a signature of "no_buses" so they can be grouped together if buses: signature = create_grouping_signature({platform: buses}, platform) - # Only add to grouped_components if signature is non-empty - # (empty means component has no valid bus configurations) - if signature: - grouped_components[(platform, signature)].append(component) + else: + signature = "no_buses" + + # Add to grouped components (including those with no buses) + if signature: + grouped_components[(platform, signature)].append(component) # Print detailed grouping plan print("\nGrouping Plan:")