]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Skip mesh_link_probe if kernel support not present
authorJouni Malinen <jouni@codeaurora.org>
Mon, 3 Jun 2019 17:30:51 +0000 (20:30 +0300)
committerJouni Malinen <jouni@codeaurora.org>
Mon, 3 Jun 2019 17:30:51 +0000 (20:30 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_wpas_mesh.py

index 818004804267f9cf91e1d068fd524515f061aeac..5b8b166027644db0866321ea5580a5f184787b8d 100644 (file)
@@ -2499,7 +2499,9 @@ def test_mesh_link_probe(dev, apdev, params):
     for i in range(3):
         check_mesh_peer_connected(dev[i])
 
-    dev[0].request("MESH_LINK_PROBE " + addr1)
+    res = dev[0].request("MESH_LINK_PROBE " + addr1)
+    if "FAIL" in res:
+        raise HwsimSkip("MESH_LINK_PROBE kernel side support missing")
     dev[0].request("MESH_LINK_PROBE " + addr2 + " payload=aabbccdd")
     dev[1].request("MESH_LINK_PROBE " + addr0 + " payload=bbccddee")
     dev[1].request("MESH_LINK_PROBE " + addr2 + " payload=ccddeeff")