test: harden portal hardware contract

This commit is contained in:
2026-09-07 08:12:13 +10:00
parent daf9f207b2
commit 9b070f45f4
6 changed files with 101 additions and 19 deletions
+3 -4
View File
@@ -5,13 +5,12 @@ This test fixture starts only the WiFiManager captive portal. It intentionally h
Use it through the repository runner so a secondary Wi-Fi adapter is explicitly selected and protected from becoming the host default route:
```bash
./tools/test-portal-browser.sh \
./tools/portal-hardware run \
--platform esp8266 \
--port /dev/serial/by-id/... \
--wifi-interface wlx... \
--output /tmp/wifimanager-browser
--client-interface wlx...
```
The ESP8266 portal SSID is `WM Browser ESP8266`; the ESP32 SSID is `WM Browser ESP32`. Both use `default1` exclusively for local development tests.
The ESP8266 portal SSID is `WM Contract ESP8266`; the ESP32 SSID is `WM Contract ESP32`. Both use `default1` exclusively for local development tests.
The runner cleans up only the temporary connection it creates on the named secondary interface. It refuses to run if that interface is the system default route.