Parcourir la source

tests: Clear country code at the end of wpas_config_file

This test case was mistakenly leaving the country code FI configured at
the end which could result in issues with the following test cases. Fix
this by explicitly clearing the country code back to world roaming 00 at
the end of wpas_config_file.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen il y a 8 ans
Parent
commit
0fcaff7a70
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      tests/hwsim/test_wpas_config.py

+ 3 - 0
tests/hwsim/test_wpas_config.py

@@ -252,6 +252,9 @@ def test_wpas_config_file(dev, apdev, params):
             os.rmdir(config)
         except:
             pass
+        wpas.dump_monitor()
+        wpas.request("SET country 00")
+        wpas.wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=1)
 
 def test_wpas_config_file_wps(dev, apdev):
     """wpa_supplicant config file parsing/writing with WPS"""