From: Jouni Malinen Date: Tue, 18 Aug 2015 16:43:23 +0000 (+0300) Subject: tests: Allow group 25 to fail in sae_groups if running with BoringSSL X-Git-Tag: hostap_2_5~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a68d17929b90e7b26a6f3d0814041a6cfdad88d1;p=thirdparty%2Fhostap.git tests: Allow group 25 to fail in sae_groups if running with BoringSSL It looks like NID_X9_62_prime192v1 is not available, so allow that group to fail without failing the full sae_groups test case. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index a4dcacda5..372a0ca08 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -159,7 +159,14 @@ def test_sae_groups(dev, apdev): continue logger.info("Connection with heavy SAE group " + g) else: - dev[0].wait_connected(timeout=10, error="Connection timed out with group " + g) + ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=10) + if ev is None: + if "BoringSSL" in tls and int(g) in [ 25 ]: + logger.info("Ignore connection failure with group " + g + " with BoringSSL") + dev[0].remove_network(id) + dev[0].dump_monitor() + continue + raise Exception("Connection timed out with group " + g) if dev[0].get_status_field('sae_group') != g: raise Exception("Expected SAE group not used") dev[0].remove_network(id)