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:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user