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
1 changed files with 1 additions and 1 deletions

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 == '}':