[PATCH 06/14] tests: Change wpas_config_file() test

Ilan Peer ilan.peer
Wed Oct 14 08:43:12 PDT 2015


From: Avraham Stern <avraham.stern at intel.com>

SAVE_CONFIG command on the global control interface tries to save
the config file on all interfaces. The test disables updating the
config file only on one interface, thus for configurations that
support a dedicated P2P Device interface, saving the config file
will still succeed on the P2P Device interface.

Fix the test by disabling updating the configuration file on the
global control interface as well to disable it on all interfaces.

Signed-off-by: Avraham Stern <avraham.stern at intel.com>
---
 tests/hwsim/test_wpas_config.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py
index 0af31da..8931424 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"):
-- 
1.9.1




More information about the Hostap mailing list