From: Jouni Malinen Date: Fri, 22 Oct 2021 14:45:14 +0000 (+0300) Subject: tests: Configuration file comment with "" after # X-Git-Tag: hostap_2_10~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a54c252a463a1963e8eaa729fc97b8d743de3eb;p=thirdparty%2Fhostap.git tests: Configuration file comment with "" after # Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py index d105fed0d..3cd7dfcf3 100644 --- a/tests/hwsim/test_wpas_config.py +++ b/tests/hwsim/test_wpas_config.py @@ -191,6 +191,11 @@ def test_wpas_config_file(dev, apdev, params): f.write(" ") f.write("foo\n") f.write("device_name=name#foo\n") + f.write("network={\n") + f.write("\tkey_mgmt=NONE\n") + f.write('\tssid="hello"\n') + f.write('\tgroup=GCMP # "foo"\n') + f.write("}\n") wpas.interface_add("wlan5", config=config) capa = {} @@ -242,9 +247,11 @@ def test_wpas_config_file(dev, apdev, params): wpas.interface_remove("wlan5") data1 = check_config(capa, config) + if "group=GCMP" not in data1: + raise Exception("Network block group parameter with a comment not present") wpas.interface_add("wlan5", config=config) - if len(wpas.list_networks()) != 1: + if len(wpas.list_networks()) != 2: raise Exception("Unexpected number of networks") if len(wpas.request("LIST_CREDS").splitlines()) != 2: raise Exception("Unexpected number of credentials")