tests: Skip mesh_link_probe if kernel support not present

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2019-06-03 20:30:51 +03:00
parent 41bca92662
commit ea27fcff61

View file

@ -2499,7 +2499,9 @@ def test_mesh_link_probe(dev, apdev, params):
for i in range(3): for i in range(3):
check_mesh_peer_connected(dev[i]) 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[0].request("MESH_LINK_PROBE " + addr2 + " payload=aabbccdd")
dev[1].request("MESH_LINK_PROBE " + addr0 + " payload=bbccddee") dev[1].request("MESH_LINK_PROBE " + addr0 + " payload=bbccddee")
dev[1].request("MESH_LINK_PROBE " + addr2 + " payload=ccddeeff") dev[1].request("MESH_LINK_PROBE " + addr2 + " payload=ccddeeff")