Skip to content
Commit 8f9c2828 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Anas Nashif
Browse files

twister: pytest: escape expected command regex



When sending commands containing something like "AT+CFUN" the expected
regex was not escaped and as a result such regex never matched what has
been echoed over serial.

Escape all commands with re.escape() so that echoed shell commands are
always matched, even when they contain special characters (like '+' in the
example above).

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent d5b1a7d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment