From b27c7ac0ebb8d814060c0c00b28c5efdb1a32cd1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 6 Mar 2020 11:24:28 +0200 Subject: [PATCH] tests: wpa_supplicant SAVE_CONFIG without config file Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_config.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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")