From: Jouni Malinen Date: Mon, 25 Feb 2019 19:58:28 +0000 (+0200) Subject: tests: More robust connect command testing X-Git-Tag: hostap_2_8~295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05103c400b5ae705d9a3aea21f4f4dc540d22e6a;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_connect_cmd.py b/tests/hwsim/test_connect_cmd.py index 0c748991f..d2f66a497 100644 --- a/tests/hwsim/test_connect_cmd.py +++ b/tests/hwsim/test_connect_cmd.py @@ -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()