tests: mesh_scan_oom to support partial BSS result reporting
authorJouni Malinen <j@w1.fi>
Sun, 19 Jun 2016 20:47:01 +0000 (23:47 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 19 Jun 2016 20:48:07 +0000 (23:48 +0300)
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 <j@w1.fi>
tests/hwsim/test_wpas_mesh.py

index a5f540a..b599e90 100644 (file)
@@ -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):