mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 20:57:47 +00:00
[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:".
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user