1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-26 20:53:50 +00:00

[ci] Fix component splitter for components with only variant tests (#11476)

This commit is contained in:
J. Nick Koston
2025-10-22 07:30:27 -10:00
committed by GitHub
parent 6edbb94529
commit f592f79bce

View File

@@ -49,9 +49,9 @@ def has_test_files(component_name: str, tests_dir: Path) -> bool:
tests_dir: Path to tests/components directory (unused, kept for compatibility) tests_dir: Path to tests/components directory (unused, kept for compatibility)
Returns: Returns:
True if the component has test.*.yaml files True if the component has test.*.yaml or test-*.yaml files
""" """
return bool(get_component_test_files(component_name)) return bool(get_component_test_files(component_name, all_variants=True))
def create_intelligent_batches( def create_intelligent_batches(