3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 01:19:23 +01:00

auto-t: fix testNetconfig lease parsing

The parsing code was breaking out of the loop on the first comment
which is incorrect and causes only part of the file to be parsed.
Its odd this hasn't popped up until now but its likely due to
differing dhcpd versions, some which add comments and others that
do not.
This commit is contained in:
James Prestwood 2023-06-19 15:57:46 -07:00 committed by Denis Kenzior
parent 6f7dd97607
commit b1cc4c236b

View File

@ -276,7 +276,7 @@ class Test(unittest.TestCase):
elif quote or ch not in ' \t\r\n;{}#':
token += ch
if ch == '#':
break
continue
elif ch == '{':
stack.append([])
elif ch == '}':