mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
Merge branch 'esp8266-native-ci' into esp8266-native-pch
This commit is contained in:
@@ -1062,6 +1062,12 @@ def test_components(
|
||||
# toolchain build.
|
||||
include_validate = esphome_command != "compile"
|
||||
|
||||
# A blank pattern list would slide into the reference-baseline
|
||||
# fallback and exit green while building nothing
|
||||
if fail_on_no_tests and not any(component_patterns):
|
||||
print("No components requested (blank component list)")
|
||||
return 1
|
||||
|
||||
# Find all component tests; remember which components each pattern
|
||||
# (wildcards included) matched, for the deferred no-tests accounting
|
||||
all_tests = {}
|
||||
@@ -1076,12 +1082,6 @@ def test_components(
|
||||
pattern_components[pattern] = set(found)
|
||||
all_tests.update(found)
|
||||
|
||||
# A blank pattern list would slide into the reference-baseline
|
||||
# fallback and exit green while building nothing
|
||||
if fail_on_no_tests and not any(component_patterns):
|
||||
print("No components requested (blank component list)")
|
||||
return 1
|
||||
|
||||
if fail_on_no_tests and not all_tests:
|
||||
# Nothing matched: fail before the synthetic baseline spends a
|
||||
# compile reporting success on nothing
|
||||
|
||||
Reference in New Issue
Block a user