tests: Skip test cases that need FILS if CONFIG_FILS=y was not used

fils_offload_to_driver2 and wpas_config_file_key_mgmt require
CONFIG_FILS=y, but they did not use check_fils_capa().

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2024-01-13 23:48:38 +02:00
parent 2d83d224ff
commit 30975951de
2 changed files with 2 additions and 0 deletions

View file

@ -2472,6 +2472,7 @@ def test_fils_offload_to_driver(dev, apdev, params):
def test_fils_offload_to_driver2(dev, apdev, params):
"""FILS offload to driver"""
check_fils_capa(dev[0])
wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
wpas.interface_add("wlan5", drv_params="force_connect_cmd=1")
run_fils_offload_to_driver(wpas, apdev, params)

View file

@ -551,6 +551,7 @@ def test_wpas_config_file_set_global(dev):
def test_wpas_config_file_key_mgmt(dev, apdev, params):
"""wpa_supplicant config file writing and key_mgmt values"""
check_fils_capa(dev[0])
config = os.path.join(params['logdir'],
'wpas_config_file_key_mgmt.conf')
if os.path.exists(config):