From a10af5a3d66549a51f72e8fa1e74a228b5cd83c1 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 8 Mar 2021 13:30:01 -0800 Subject: [PATCH] [tests] allow extra chars in prefix list 'wpanctl' output (#6240) This commit relaxes the parsing of on-mesh prefix list `wpanctl` output in `wpan.py` allowing extra chars to be present between "pref:" and "prio:". --- tests/toranj/wpan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/toranj/wpan.py b/tests/toranj/wpan.py index 0780a9755..1153405a5 100644 --- a/tests/toranj/wpan.py +++ b/tests/toranj/wpan.py @@ -1185,7 +1185,7 @@ class OnMeshPrefix(object): m = re.match( r'\t"([0-9a-fA-F:]+)\s*prefix_len:(\d+)\s+origin:(\w*)\s+stable:(\w*).* \[' + - r'on-mesh:(\d)\s+def-route:(\d)\s+config:(\d)\s+dhcp:(\d)\s+slaac:(\d)\s+pref:(\d)\s+prio:(\w*)\]' + + r'on-mesh:(\d)\s+def-route:(\d)\s+config:(\d)\s+dhcp:(\d)\s+slaac:(\d)\s+pref:(\d)\s+.*prio:(\w*)\]' + r'\s+rloc:(0x[0-9a-fA-F]+)', text) verify(m is not None) data = m.groups()