1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-12 23:03:46 +01:00
This commit is contained in:
J. Nick Koston
2025-10-09 14:42:39 -10:00
parent 2d398db26c
commit e5994c1fed
3 changed files with 31 additions and 15 deletions

View File

@@ -196,9 +196,19 @@ def run_esphome_test(
print(" (using --testing-mode)") print(" (using --testing-mode)")
try: try:
result = subprocess.run(cmd, check=not continue_on_fail) result = subprocess.run(cmd, check=False)
return result.returncode == 0, cmd_str success = result.returncode == 0
if not success and not continue_on_fail:
# Print command immediately for failed tests
print(f"\n{'=' * 80}")
print("FAILED - Command to reproduce:")
print(f"{'=' * 80}")
print(cmd_str)
print()
raise subprocess.CalledProcessError(result.returncode, cmd)
return success, cmd_str
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
# Re-raise if we're not continuing on fail
if not continue_on_fail: if not continue_on_fail:
raise raise
return False, cmd_str return False, cmd_str
@@ -295,9 +305,19 @@ def run_grouped_test(
print(" (using --testing-mode)") print(" (using --testing-mode)")
try: try:
result = subprocess.run(cmd, check=not continue_on_fail) result = subprocess.run(cmd, check=False)
return result.returncode == 0, cmd_str success = result.returncode == 0
if not success and not continue_on_fail:
# Print command immediately for failed tests
print(f"\n{'=' * 80}")
print("FAILED - Command to reproduce:")
print(f"{'=' * 80}")
print(cmd_str)
print()
raise subprocess.CalledProcessError(result.returncode, cmd)
return success, cmd_str
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
# Re-raise if we're not continuing on fail
if not continue_on_fail: if not continue_on_fail:
raise raise
return False, cmd_str return False, cmd_str

View File

@@ -1,5 +1,6 @@
touchscreen: touchscreen:
- platform: ft63x6 - platform: ft63x6
i2c_id: i2c_bus
id: tft_touch id: tft_touch
display: tft_display display: tft_display
update_interval: 50ms update_interval: 50ms

View File

@@ -1,10 +1,7 @@
spi: packages:
clk_pin: 14 lvgl: !include lvgl-package.yaml
mosi_pin: 13 spi: !include ../../test_build_components/common/spi/esp32-idf.yaml
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
i2c:
sda: GPIO18
scl: GPIO19
sensor: sensor:
- platform: rotary_encoder - platform: rotary_encoder
@@ -25,6 +22,7 @@ binary_sensor:
display: display:
- platform: ili9xxx - platform: ili9xxx
spi_id: spi_bus
model: st7789v model: st7789v
id: second_display id: second_display
dimensions: dimensions:
@@ -44,6 +42,7 @@ display:
update_interval: never update_interval: never
- platform: ili9xxx - platform: ili9xxx
spi_id: spi_bus
model: st7789v model: st7789v
id: tft_display id: tft_display
dimensions: dimensions:
@@ -60,10 +59,6 @@ display:
invert_colors: false invert_colors: false
update_interval: never update_interval: never
packages:
lvgl: !include lvgl-package.yaml
spi: !include ../../test_build_components/common/spi/esp32-idf.yaml
lvgl: lvgl:
displays: displays:
- tft_display - tft_display