From: Jouni Malinen Date: Fri, 6 Mar 2020 09:24:28 +0000 (+0200) Subject: tests: wpa_supplicant SAVE_CONFIG without config file X-Git-Tag: hostap_2_10~1680 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b27c7ac0ebb8d814060c0c00b28c5efdb1a32cd1;p=thirdparty%2Fhostap.git tests: wpa_supplicant SAVE_CONFIG without config file Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py index acf19594e..14816a0e1 100644 --- a/tests/hwsim/test_wpas_config.py +++ b/tests/hwsim/test_wpas_config.py @@ -644,3 +644,11 @@ def test_wpas_config_file_sae(dev, apdev, params): only_add_network=True) wpas.save_config() 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")