From ea27fcff615226a958ec0b7302741287c772f063 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 3 Jun 2019 20:30:51 +0300 Subject: [PATCH] tests: Skip mesh_link_probe if kernel support not present Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_mesh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py index 818004804..5b8b16602 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -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")