[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:
Abtin Keshavarzian
2021-03-08 13:30:01 -08:00
committed by GitHub
parent 7d1691ed09
commit a10af5a3d6
+1 -1
View File
@@ -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()