mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-06 07:10:03 +03:00
The otatool pytest calls dut.serial.close() and then immediately launches otatool_example.py as a subprocess that re-opens the same serial port via esptool. This fails intermittently because: 1. pytest-embedded's QueueFeederThread still holds a reference to the serial port file descriptor when close() returns, causing 'argument must be an int, or have a fileno() method' error. 2. The OS has not fully released the serial port by the time the subprocess tries to open it. Add a delay after serial close and retry logic for the subprocess to handle transient serial port contention. Made-with: Cursor
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
|---|
System Examples
Configuration and management of memory, interrupts, WDT (watchdog timer), OTA (over the air updates), deep sleep logging, and event loops.
See the README.md file in the upper level examples directory for more information about examples.