]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix the regdom wait in wpas_config_file
authorJouni Malinen <j@w1.fi>
Sun, 10 Dec 2023 14:41:57 +0000 (16:41 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Dec 2023 17:40:18 +0000 (19:40 +0200)
In addition, print some more debug information to the log.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_config.py

index 631669617c197d2e02ad5f61d1589de7bb272a9d..a6b12e5fc4a0c3a316c7f6efca065b68823617bf 100644 (file)
@@ -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):