From 7d89a997146beec38a6a3785dd6c08fd6bbc87c4 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 28 May 2019 20:06:55 +0300 Subject: [PATCH] tests: Add more wait around tcpdump capture processes for proxyarp It looks like the previously used sleep time was not sufficient to allow capturing the frames from wlan0/wlan1/wlan2 to start and complete so that all the necessary frames can be checked. This was the case especially with UML time-travel=inf-cpu. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index d193aa701..319a5f6fc 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -4684,7 +4684,7 @@ def _test_proxyarp_open(dev, apdev, params, ebtables=False): dev[0].connect("open", key_mgmt="NONE", scan_freq="2412") dev[1].connect("open", key_mgmt="NONE", scan_freq="2412") dev[2].connect("another", key_mgmt="NONE", scan_freq="2412") - time.sleep(0.1) + time.sleep(1.1) brcmd = subprocess.Popen(['brctl', 'show'], stdout=subprocess.PIPE) res = brcmd.stdout.read().decode() @@ -4870,9 +4870,10 @@ def _test_proxyarp_open(dev, apdev, params, ebtables=False): dev[0].request("DISCONNECT") dev[1].request("DISCONNECT") - time.sleep(0.5) + time.sleep(1.5) for i in range(len(cmd)): cmd[i].terminate() + time.sleep(0.1) macs = get_bridge_macs("ap-br0") logger.info("After disconnect (showmacs): " + str(macs)) matches = get_permanent_neighbors("ap-br0")