From: Jouni Malinen Date: Sun, 19 Jun 2016 20:47:01 +0000 (+0300) Subject: tests: mesh_scan_oom to support partial BSS result reporting X-Git-Tag: hostap_2_6~363 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51435515fbe59d4042943c33426a8aa19264195f;p=thirdparty%2Fhostap.git tests: mesh_scan_oom to support partial BSS result reporting The next commit modifies the BSS command behavior to report partial results for a BSS, so mesh_scan_oom needs to allow a BSS entry to be returned as long as it does not include the mesh information. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py index a5f540a53..b599e9014 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -1291,7 +1291,7 @@ def test_mesh_scan_oom(dev): for i in range(1, 3): with alloc_fail(dev[1], i, "mesh_attr_text"): bss = dev[1].get_bss(bssid) - if bss is not None: + if bss and "mesh_id" in bss: raise Exception("Unexpected BSS result during OOM") def test_mesh_drv_fail(dev, apdev):