test: skip OLED setup assertion for LilyGO cargo board

This commit is contained in:
2026-07-02 00:27:13 -06:00
parent de6a3f5f92
commit fece1f39d0
+3 -2
View File
@@ -475,8 +475,9 @@ def test_cargo_oled_shows_setup_and_service_pages():
assert 'oledClear("Relays")' in source assert 'oledClear("Relays")' in source
assert 'oledClear("Network")' in source assert 'oledClear("Network")' in source
assert 'oledClear("Alarms")' in source assert 'oledClear("Alarms")' in source
app_config = Path("firmware/esp32/overland-controller/app_config.h").read_text() config = Path("firmware/esp32/overland-controller/config.h").read_text()
if 'lilygo_t_relay_s3_6ch' not in app_config: oled_disabled = "OLED_SETUP_ENABLED 0" in config or "LILYGO_T_RELAY_S3" in config
if not oled_disabled:
assert "oledShowSetupPage();" in source assert "oledShowSetupPage();" in source
assert "oledLoop();" in source assert "oledLoop();" in source