uartExpect - Set expectation for uartAwait

Arm a UART response expectation to be waited on with a subsequent uartAwait - Await UART response command. This step itself does not block; it registers the expectation and returns immediately.

Usage:

- command: uartExpect <uartPort> <expect> [noflush]
  [retry: <retryCount>]

Argument

Description

uartPort

UART port name: UART0, UART1, UART2, etc.

expect

String to expect with a subsequent uartAwait command. Prefix with hex to interpret as a hex string (e.g. hex ef0102).

noflush

Don’t flush the receive buffer before registering the expectation.

retryCount

Number of times to retry the test step (optional)