From patchwork Thu Jun 23 17:16:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Afek X-Patchwork-Id: 639779 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rb7SM3clhz9sdQ for ; Fri, 24 Jun 2016 03:17:23 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wizery-com.20150623.gappssmtp.com header.i=@wizery-com.20150623.gappssmtp.com header.b=Ywny3MGx; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bG8Fe-0004Kg-2U; Thu, 23 Jun 2016 17:17:14 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bG8FW-0004Ff-MR for hostap@lists.infradead.org; Thu, 23 Jun 2016 17:17:09 +0000 Received: by mail-pf0-x244.google.com with SMTP id 66so7205920pfy.1 for ; Thu, 23 Jun 2016 10:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wizery-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=DVa2Mxp0ZNVASmrkCDOgj7LdbrT0BoNrC4qC0E2DoyU=; b=Ywny3MGxQj0jMF/pE+VzJOs07iCzoHbM9LYBQf4msrkv9j8gsnqyrx50FdnEm3brYP vX3eEldAj0/5fFYkAB6+rYoEubVEQXCIo9cKZcZyeTKVcpP1IGnIioSSC+zgEcGVUaK8 U6Qs5Dpwi48/N6ne13HwKxYTiPEu7DdpqFOxtkD8rfIKyOGA24oCnlxWMQdOPvRtfK7b Jx6qDBItGwqxCrVN5q/8gudk07lsW6AVpXO/nA3mMJOP7FVJkNqdfWM/QKmveLL1KjNX vFoYTGHWQ3d/MsVnKhGqyNy5XTH1aq8+KKP6RuC8hvd0fHAU0vOjhoinNLUMM4XQ2shj lOGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=DVa2Mxp0ZNVASmrkCDOgj7LdbrT0BoNrC4qC0E2DoyU=; b=ht82W42xeYwo4QgKjPhD7uXWRdhEEIzlWlhPb7sAZGjHdOMXTT+vWzX29zZ/tf+quC tTjXHrI3iSbgsJpMUoUwxuon+MLTxj5VoO8ny4VR3/NCfSOdF1+LntDBUsGNNP+x3UB/ aL4GMPfQjbhiYLGrmxwZYFYop4t7IVtE9QXT/UdBOhvEEKIvd51xfBECQr81WZGlgzBa Pg8a8OJleTs1XQPjKGcK9FZsNPqwpXBiOSG4/qIp2BA8TH2DgoYviC3zBrEH35kBDljW LDeUQC4VKN43xfaYmX3VTBtViBYmYArdmgToK8yJq1Tm9uf+tvao9bXos3ul9NQfzj4w HVIg== X-Gm-Message-State: ALyK8tLL0uIwuziymmiN7tTZOKvX0BtNUV9m4xh8IASinvhp0wzYaVawvIHT/VL4U7NmSw== X-Received: by 10.98.82.68 with SMTP id g65mr44657693pfb.157.1466702205602; Thu, 23 Jun 2016 10:16:45 -0700 (PDT) Received: from localhost.localdomain ([192.55.55.41]) by smtp.gmail.com with ESMTPSA id n124sm1450391pfn.44.2016.06.23.10.16.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Jun 2016 10:16:45 -0700 (PDT) From: Jonathan Afek To: hostap@lists.infradead.org Subject: [PATCH 3/8] tests: increase timeout for remote tests Date: Thu, 23 Jun 2016 20:16:31 +0300 Message-Id: <1466702196-26828-3-git-send-email-jonathan@wizery.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466702196-26828-1-git-send-email-jonathan@wizery.com> References: <1466702196-26828-1-git-send-email-jonathan@wizery.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160623_101706_963730_FE84ADAF X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:244 listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Some operations take longer time on real hardware than on hwsim. This patch increases 3 timeouts so that the tests will pass on real hardware too. Signed-off-by: Jonathan Afek --- tests/hwsim/test_ap_csa.py | 2 +- tests/hwsim/test_ap_qosmap.py | 2 +- tests/hwsim/wpasupplicant.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/hwsim/test_ap_csa.py b/tests/hwsim/test_ap_csa.py index 7ff94a6..48f1a88 100644 --- a/tests/hwsim/test_ap_csa.py +++ b/tests/hwsim/test_ap_csa.py @@ -27,7 +27,7 @@ def switch_channel(ap, count, freq): raise Exception("CSA finished event timed out") if "freq=" + str(freq) not in ev: raise Exception("Unexpected channel in CSA finished event") - time.sleep(1) + time.sleep(3) # This function checks whether the provided dev, which may be either # WpaSupplicant or Hostapd supports CSA. diff --git a/tests/hwsim/test_ap_qosmap.py b/tests/hwsim/test_ap_qosmap.py index 0030d94..48348bf 100644 --- a/tests/hwsim/test_ap_qosmap.py +++ b/tests/hwsim/test_ap_qosmap.py @@ -21,7 +21,7 @@ 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) + time.sleep(0.2) 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 0c8a76a..480346a 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -813,7 +813,7 @@ class WpaSupplicant: except: pass self.gctrl_mon = None - ev = self.wait_global_event(["P2P-GROUP-REMOVED"], timeout=3) + ev = self.wait_global_event(["P2P-GROUP-REMOVED"], timeout=10) if ev is None: raise Exception("Group removal event timed out") if "reason=GO_ENDING_SESSION" not in ev: