mirror of
https://github.com/esphome/esphome.git
synced 2026-03-01 10:24:19 -07:00
[ci] Fix C++ unit tests missing time component dependency (#14364)
This commit is contained in:
@@ -98,8 +98,12 @@ def run_tests(selected_components: list[str]) -> int:
|
||||
|
||||
components = sorted(components)
|
||||
|
||||
# Obtain possible dependencies for the requested components:
|
||||
components_with_dependencies = sorted(get_all_dependencies(set(components)))
|
||||
# Obtain possible dependencies for the requested components.
|
||||
# Always include 'time' because USE_TIME_TIMEZONE is defined as a build flag,
|
||||
# which causes core/time.h to include components/time/posix_tz.h.
|
||||
components_with_dependencies = sorted(
|
||||
get_all_dependencies(set(components) | {"time"})
|
||||
)
|
||||
|
||||
# Build a list of include folders, one folder per component containing tests.
|
||||
# A special replacement main.cpp is located in /tests/components/main.cpp
|
||||
|
||||
Reference in New Issue
Block a user