]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make suite_b* test cases more robust
authorJouni Malinen <j@w1.fi>
Fri, 6 Mar 2015 21:18:46 +0000 (23:18 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 6 Mar 2015 21:18:46 +0000 (23:18 +0200)
Explicitly clear the cfg80211 BSS cache at the beginning of these test
cases to avoid matching BSS flags against incorrect AP.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_suite_b.py

index 2fee87c48ac562a3a53bb8f4c19360f8b2639a8f..1fabe3e2847c30b13a6de25b1f99fef1a3d74b23 100644 (file)
@@ -25,6 +25,7 @@ def test_suite_b(dev, apdev):
     if "build=OpenSSL 1.0.2" not in tls or "run=OpenSSL 1.0.2" not in tls:
         raise HwsimSkip("OpenSSL version not supported for Suite B: " + tls)
 
+    dev[0].flush_scan_cache()
     params = { "ssid": "test-suite-b",
                "wpa": "2",
                "wpa_key_mgmt": "WPA-EAP-SUITE-B",
@@ -83,6 +84,7 @@ def test_suite_b_192(dev, apdev):
     if "build=OpenSSL 1.0.2" not in tls or "run=OpenSSL 1.0.2" not in tls:
         raise HwsimSkip("OpenSSL version not supported for Suite B: " + tls)
 
+    dev[0].flush_scan_cache()
     params = { "ssid": "test-suite-b",
                "wpa": "2",
                "wpa_key_mgmt": "WPA-EAP-SUITE-B-192",