From: Avraham Stern Date: Wed, 14 Oct 2015 15:43:12 +0000 (+0300) Subject: tests: Change wpas_config_file test for dedicated P2P Device case X-Git-Tag: hostap_2_6~1501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf0dffd67ef365702a59ef2c6b50867d5582c6a5;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py index 0af31daa8..d9be63a9d 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"):