From 4441b9d571306d061114f637faa937db81a41f1e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 18 Mar 2013 17:36:12 +0200 Subject: [PATCH] tests: Use social channel scan to speed up tests The discovery and group formation test cases do not need to run the full scan as the first step, so get rid of it to make the tests complete more quickly. Signed-hostap: Jouni Malinen --- tests/hwsim/test_p2p_discovery.py | 4 ++-- tests/hwsim/test_p2p_grpform.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/hwsim/test_p2p_discovery.py b/tests/hwsim/test_p2p_discovery.py index ed520a2c3..508325adf 100644 --- a/tests/hwsim/test_p2p_discovery.py +++ b/tests/hwsim/test_p2p_discovery.py @@ -14,8 +14,8 @@ def test_discovery(dev): addr0 = dev[0].p2p_dev_addr() addr1 = dev[1].p2p_dev_addr() logger.info("Start device discovery") - dev[0].p2p_find() - dev[1].p2p_find() + dev[0].p2p_find(social=True) + dev[1].p2p_find(social=True) ev0 = dev[0].wait_event(["P2P-DEVICE-FOUND"], timeout=15) if ev0 is None: raise Exception("Device discovery timed out") diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py index 6fa1ebc95..6c976acb6 100644 --- a/tests/hwsim/test_p2p_grpform.py +++ b/tests/hwsim/test_p2p_grpform.py @@ -84,8 +84,8 @@ def go_neg_init_pbc(i_dev, r_dev, i_intent, res): res.put(i_res) def go_neg_pbc(i_dev, r_dev, i_intent=None, r_intent=None): - r_dev.p2p_find() - i_dev.p2p_find() + r_dev.p2p_find(social=True) + i_dev.p2p_find(social=True) logger.info("Start GO negotiation " + i_dev.ifname + " -> " + r_dev.ifname) r_dev.dump_monitor() res = Queue.Queue()