1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-23 12:13:49 +01:00

[ci] Fix test_build_components missing test files with hyphen naming pattern

This commit is contained in:
J. Nick Koston
2025-10-17 11:29:17 -10:00
parent b61cec8e77
commit de5894ca1a

View File

@@ -99,7 +99,8 @@ def find_component_tests(
if not comp_dir.is_dir():
continue
for test_file in comp_dir.glob("test.*.yaml"):
# Find test files matching test.*.yaml or test-*.yaml patterns
for test_file in comp_dir.glob("test[.-]*.yaml"):
component_tests[comp_dir.name].append(test_file)
return dict(component_tests)