From: Jouni Malinen Date: Tue, 10 Feb 2015 10:09:07 +0000 (+0200) Subject: tests: Make autogo_join_auto_go_neg more robust X-Git-Tag: hostap_2_4~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=380f3a8ba1265a0ba84ec3cf66aebf000cff6c69;p=thirdparty%2Fhostap.git tests: Make autogo_join_auto_go_neg more robust This test cases used to fail if dev1 had seen dev0 as a GO in an earlier test case, e.g., when running it after autogo_fail. Fix this by clearing scan results on dev1 at the beginning of the test case. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py index 385a786ca..6e8758d45 100644 --- a/tests/hwsim/test_p2p_autogo.py +++ b/tests/hwsim/test_p2p_autogo.py @@ -538,6 +538,7 @@ def test_autogo_join_auto(dev): def test_autogo_join_auto_go_neg(dev): """P2P_CONNECT-auto fallback to GO Neg""" + dev[1].flush_scan_cache() dev[0].p2p_listen() addr = dev[0].p2p_dev_addr() if "OK" not in dev[1].global_request("P2P_CONNECT " + addr + " pbc auto"):