tests: Skip fst_attach_wpas_error if no FST support
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 27 Jul 2015 10:54:03 +0000 (13:54 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 28 Jul 2015 15:56:33 +0000 (18:56 +0300)
This check for FST testing support was forgotten from one of the new FST
test cases.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_fst_module.py

index c23df83..7af6415 100644 (file)
@@ -2635,6 +2635,8 @@ def _test_fst_many_setup(dev, apdev, test_params):
 
 def test_fst_attach_wpas_error(dev, apdev, test_params):
     """FST attach errors in wpa_supplicant"""
+    if "OK" not in dev[0].global_request("FST-MANAGER TEST_REQUEST IS_SUPPORTED"):
+        raise HwsimSkip("No FST testing support")
     group = "fstg0"
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
     wpas.interface_add("wlan5")