Browse Source

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 <j@w1.fi>
Jouni Malinen 8 years ago
parent
commit
51435515fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/hwsim/test_wpas_mesh.py

+ 1 - 1
tests/hwsim/test_wpas_mesh.py

@@ -1291,7 +1291,7 @@ def test_mesh_scan_oom(dev):
     for i in range(1, 3):
     for i in range(1, 3):
         with alloc_fail(dev[1], i, "mesh_attr_text"):
         with alloc_fail(dev[1], i, "mesh_attr_text"):
             bss = dev[1].get_bss(bssid)
             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")
                 raise Exception("Unexpected BSS result during OOM")
 
 
 def test_mesh_drv_fail(dev, apdev):
 def test_mesh_drv_fail(dev, apdev):