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:
parent
6f7dd97607
commit
b1cc4c236b
@ -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 == '}':
|
||||
|
Loading…
Reference in New Issue
Block a user