ARMmbed / htrun

MOVED: https://github.com/ARMmbed/mbed-os-tools (Flash, reset and run host supervised tests on mbed platforms)
8 stars 37 forks source link

htrun does not wait for the serial port #148

Closed Patater closed 7 years ago

Patater commented 7 years ago

check_serial_port_ready always returns true. There is logic to handle a timeout, but check_serial_port_ready doesn't notify its caller (SerialConnectorPrimitive.__init__) that no serial port was found after a timeout. As such, htrun attempts to use a serial port that isn't yet ready, to send a sync message, leading to failures to sync with greentea-client.

htrun shouldn't attempt to use a serial port until the port is ready. If waiting for the serial port times out, then htrun should fail right then and there and not continue.