1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-26 12:43:48 +00:00

[ci] Fix test detection for components with only variant tests (#11474)

This commit is contained in:
J. Nick Koston
2025-10-22 00:06:14 -10:00
committed by GitHub
parent d37eb59fd7
commit 6edbb94529
2 changed files with 146 additions and 2 deletions

View File

@@ -336,7 +336,7 @@ def _component_has_tests(component: str) -> bool:
Returns:
True if the component has test YAML files
"""
return bool(get_component_test_files(component))
return bool(get_component_test_files(component, all_variants=True))
def _select_platform_by_preference(
@@ -496,7 +496,7 @@ def detect_memory_impact_config(
for component in sorted(changed_component_set):
# Look for test files on preferred platforms
test_files = get_component_test_files(component)
test_files = get_component_test_files(component, all_variants=True)
if not test_files:
continue