Browse Source

tests: More robust owe_transition_mode* tests

Flush old scan results in these test cases to avoid checking incorrect
scan result entry.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 7 years ago
parent
commit
8e5931f0c7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/hwsim/test_owe.py

+ 1 - 0
tests/hwsim/test_owe.py

@@ -141,6 +141,7 @@ def test_owe_transition_mode_connect_cmd(dev, apdev):
 def run_owe_transition_mode(dev, apdev):
     if "OWE" not in dev[0].get_capability("key_mgmt"):
         raise HwsimSkip("OWE not supported")
+    dev[0].flush_scan_cache()
     params = { "ssid": "owe-random",
                "wpa": "2",
                "wpa_key_mgmt": "OWE",