diff mbox

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

Message ID 1444837400-17309-7-git-send-email-ilan.peer@intel.com
State Accepted
Headers show

Commit Message

Ilan Peer Oct. 14, 2015, 3:43 p.m. UTC
From: Avraham Stern <avraham.stern@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@intel.com>
---
 tests/hwsim/test_wpas_config.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

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"):