From a68d17929b90e7b26a6f3d0814041a6cfdad88d1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 18 Aug 2015 19:43:23 +0300 Subject: [PATCH] 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 --- tests/hwsim/test_sae.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index a4dcacd..372a0ca 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) -- 2.1.4