Browse Source

tests: Skip fst_attach_wpas_error if no FST support

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>
Jouni Malinen 9 years ago
parent
commit
d8aa603d53
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/hwsim/test_fst_module.py

+ 2 - 0
tests/hwsim/test_fst_module.py

@@ -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")