tests: wpa_supplicant SAVE_CONFIG without config file

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-03-06 11:24:28 +02:00 committed by Jouni Malinen
parent 87775e32f6
commit b27c7ac0eb

View file

@ -644,3 +644,11 @@ def test_wpas_config_file_sae(dev, apdev, params):
only_add_network=True) only_add_network=True)
wpas.save_config() wpas.save_config()
check_network_config(config, False) check_network_config(config, False)
def test_wpas_config_update_without_file(dev, apdev):
"""wpa_supplicant SAVE_CONFIG without config file"""
wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
wpas.interface_add("wlan5")
wpas.set("update_config", "1")
if "FAIL" not in wpas.request("SAVE_CONFIG"):
raise Exception("SAVE_CONFIG accepted unexpectedly")