From cf0dffd67ef365702a59ef2c6b50867d5582c6a5 Mon Sep 17 00:00:00 2001 From: Avraham Stern Date: Wed, 14 Oct 2015 18:43:12 +0300 Subject: [PATCH] tests: Change wpas_config_file test for dedicated P2P Device case SAVE_CONFIG command on the global control interface tries to save the config file on all interfaces. The test disabled updating the config file only on one interface, thus for configurations that support a dedicated P2P Device interface, saving the config file would still have succeeded on the P2P Device interface. Fix the test by disabling updating the configuration file on the global control interface (which will, in practice, disable this for the P2P Device interface) in addition to disabling it on the main interface. Signed-off-by: Avraham Stern --- tests/hwsim/test_wpas_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py index 0af31da..d9be63a 100644 --- a/tests/hwsim/test_wpas_config.py +++ b/tests/hwsim/test_wpas_config.py @@ -117,6 +117,7 @@ def test_wpas_config_file(dev): raise Exception("Unexpected configuration change") wpas.request("SET update_config 0") + wpas.global_request("SET update_config 0") if "OK" in wpas.request("SAVE_CONFIG"): raise Exception("SAVE_CONFIG succeeded unexpectedly") if "OK" in wpas.global_request("SAVE_CONFIG"): @@ -126,6 +127,7 @@ def test_wpas_config_file(dev): os.remove(config) os.mkdir(config) wpas.request("SET update_config 1") + wpas.global_request("SET update_config 1") if "OK" in wpas.request("SAVE_CONFIG"): raise Exception("SAVE_CONFIG succeeded unexpectedly") if "OK" in wpas.global_request("SAVE_CONFIG"): -- 2.1.4