From: Jouni Malinen Date: Sun, 10 Dec 2023 14:41:57 +0000 (+0200) Subject: tests: Fix the regdom wait in wpas_config_file X-Git-Tag: hostap_2_11~687 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdb44a2936a932a61ae2fa5b537b6c27abe9ac17;p=thirdparty%2Fhostap.git tests: Fix the regdom wait in wpas_config_file In addition, print some more debug information to the log. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py index 631669617..a6b12e5fc 100644 --- a/tests/hwsim/test_wpas_config.py +++ b/tests/hwsim/test_wpas_config.py @@ -253,7 +253,9 @@ def test_wpas_config_file(dev, apdev, params): wpas.interface_add("wlan5", config=config) if len(wpas.list_networks()) != 2: raise Exception("Unexpected number of networks") - if len(wpas.request("LIST_CREDS").splitlines()) != 2: + res = wpas.request("LIST_CREDS") + logger.info("Credentials:\n" + res) + if len(res.splitlines()) != 2: raise Exception("Unexpected number of credentials") val = wpas.get_cred(0, "roaming_consortiums") @@ -304,7 +306,7 @@ def test_wpas_config_file(dev, apdev, params): break if "alpha2=FI" in ev: country = True - if country and "type=WORLD": + if country and "type=WORLD" in ev: break def test_wpas_config_file_wps(dev, apdev):