tests: Fix the regdom wait in wpas_config_file

In addition, print some more debug information to the log.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2023-12-10 16:41:57 +02:00
parent e7d06b508f
commit bdb44a2936

View file

@ -253,7 +253,9 @@ def test_wpas_config_file(dev, apdev, params):
wpas.interface_add("wlan5", config=config) wpas.interface_add("wlan5", config=config)
if len(wpas.list_networks()) != 2: if len(wpas.list_networks()) != 2:
raise Exception("Unexpected number of networks") 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") raise Exception("Unexpected number of credentials")
val = wpas.get_cred(0, "roaming_consortiums") val = wpas.get_cred(0, "roaming_consortiums")
@ -304,7 +306,7 @@ def test_wpas_config_file(dev, apdev, params):
break break
if "alpha2=FI" in ev: if "alpha2=FI" in ev:
country = True country = True
if country and "type=WORLD": if country and "type=WORLD" in ev:
break break
def test_wpas_config_file_wps(dev, apdev): def test_wpas_config_file_wps(dev, apdev):