]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: wpa_supplicant SAVE_CONFIG without config file
authorJouni Malinen <jouni@codeaurora.org>
Fri, 6 Mar 2020 09:24:28 +0000 (11:24 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 6 Mar 2020 09:24:28 +0000 (11:24 +0200)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_wpas_config.py

index acf19594ed1d2916f747ad0b7846efeb69f5912c..14816a0e1250724eba62b172b7bd0ba30db9e09b 100644 (file)
@@ -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")