tests: More robust connect command testing

Avoid an invalid failure case due to scan results being left behind from
connect_cmd_bssid_hint when executing connect_cmd_reject_assoc by
explicitly clearing the scan results from dev5. This fixes an error case
that happened with the following test case sequence:
connect_cmd_bssid_hint connect_cmd_reject_assoc

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2019-02-25 21:58:28 +02:00
parent fe5400dda2
commit 05103c400b

View file

@ -230,3 +230,4 @@ def test_connect_cmd_bssid_hint(dev, apdev):
wpas.dump_monitor()
finally:
wpas.request("AP_SCAN 1")
wpas.flush_scan_cache()