aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-29 10:31:04 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-29 12:32:17 (GMT)
commitdf20cdc4576c24754b72fb2f5078dac3d5bf1dfc (patch)
tree93938978dcbbaed712516ea7c131b1baf5cc975b /tests
parent96a8cc881b0b8c833e54cc95e1d2824734103e70 (diff)
downloadhostap-df20cdc4576c24754b72fb2f5078dac3d5bf1dfc.zip
hostap-df20cdc4576c24754b72fb2f5078dac3d5bf1dfc.tar.gz
hostap-df20cdc4576c24754b72fb2f5078dac3d5bf1dfc.tar.bz2
tests: Increase timeout in ap_bss_config_file for CTRL-EVENT-TERMINATING
If the kernel is built with CONFIG_DEBUG_KOBJECT_RELEASE=y, the hostapd termination event for the wlan3 interface may be delayed beyond the previous five second timeout. This could result in the test case failing and the following test case failing as well due to the separate hostapd process being still in the process of cleaning up. Fix this by increasing the timeout to avoid forcing test termination in such cases. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_dynamic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/test_ap_dynamic.py b/tests/hwsim/test_ap_dynamic.py
index 7a74c6f..2fef021 100644
--- a/tests/hwsim/test_ap_dynamic.py
+++ b/tests/hwsim/test_ap_dynamic.py
@@ -556,7 +556,7 @@ def test_ap_bss_config_file(dev, apdev, params):
hapd.ping()
if "OK" not in hapd.request("TERMINATE"):
raise Exception("Failed to terminate hostapd process")
- ev = hapd.wait_event(["CTRL-EVENT-TERMINATING"], timeout=5)
+ ev = hapd.wait_event(["CTRL-EVENT-TERMINATING"], timeout=15)
if ev is None:
raise Exception("CTRL-EVENT-TERMINATING not seen")
for i in range(30):