]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add more wait around tcpdump capture processes for proxyarp
authorJouni Malinen <j@w1.fi>
Tue, 28 May 2019 17:06:55 +0000 (20:06 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 28 May 2019 20:37:25 +0000 (23:37 +0300)
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 <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index d193aa701eff5abdf9a73767633f958d74d99e17..319a5f6fcd211a16594b1fa92f795c19dab3db65 100644 (file)
@@ -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")