Some operations take longer time on real hardware than on hwsim. This patch increases 2 timeouts so that the tests will pass on real hardware too. Signed-off-by: Jonathan Afek <jonathanx.afek@xxxxxxxxx> --- tests/hwsim/test_ap_qosmap.py | 5 ++++- tests/hwsim/wpasupplicant.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_ap_qosmap.py b/tests/hwsim/test_ap_qosmap.py index 36e35d2..0ddc456 100644 --- a/tests/hwsim/test_ap_qosmap.py +++ b/tests/hwsim/test_ap_qosmap.py @@ -22,7 +22,10 @@ def check_qos_map(ap, hapd, dev, sta, dscp, tid, ap_tid=None): wt = Wlantest() wt.clear_sta_counters(bssid, sta) hwsim_utils.test_connectivity(dev, hapd, dscp=dscp, config=False) - time.sleep(0.02) + sleep_time = 0.02 + if dev.hostname is not None: + sleep_time = 0.2 + time.sleep(sleep_time) tx = wt.get_tx_tid(bssid, sta, tid) if tx == 0: [ tx, rx ] = wt.get_tid_counters(bssid, sta) diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 383a2e7..996a2ef 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -818,7 +818,10 @@ class WpaSupplicant: except: pass self.gctrl_mon = None - ev = self.wait_global_event(["P2P-GROUP-REMOVED"], timeout=3) + timeout = 3 + if self.hostname is not None: + timeout = 10 + ev = self.wait_global_event(["P2P-GROUP-REMOVED"], timeout=timeout) if ev is None: raise Exception("Group removal event timed out") if "reason=GO_ENDING_SESSION" not in ev: -- 1.9.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap