diff mbox series

[6/6] auto-t: fix testNetconfig lease parsing

Message ID 20230619225746.462791-6-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/6] handshake: add force_sha1 flag to handshake_state_get_pmkid() | expand

Commit Message

James Prestwood June 19, 2023, 10:57 p.m. UTC
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.
---
 autotests/testNetconfig/connection_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/autotests/testNetconfig/connection_test.py b/autotests/testNetconfig/connection_test.py
index cf90993a..aed35bee 100644
--- a/autotests/testNetconfig/connection_test.py
+++ b/autotests/testNetconfig/connection_test.py
@@ -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 == '}':