From patchwork Thu Jun 23 17:16:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Afek X-Patchwork-Id: 639782 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 3rb7SQ2131z9sdm for ; Fri, 24 Jun 2016 03:17:26 +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=bJVau/Ba; 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 1bG8Fc-0004KM-VB; Thu, 23 Jun 2016 17:17:12 +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-0004Fo-MU for hostap@lists.infradead.org; Thu, 23 Jun 2016 17:17:08 +0000 Received: by mail-pf0-x244.google.com with SMTP id 66so7206012pfy.1 for ; Thu, 23 Jun 2016 10:16:50 -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=J0oUh1HGVLRQQ9nDijrIkM1ObzjRLtBGly6wGHgIAMg=; b=bJVau/Baz5S2h6cS/bx0ignWO0Lb9IBBawYKdm6zEthIY/YELFogM8LIUsndZS6yOm ccCPh+I2Q9FUj+09bSKQRlqnGYTg3YC9BAbWWG6UuIgXvkLLVcg6EkZuhQZKRWdSLrLQ dRBHxOxNftdOusaZAElpa9hmEPp0CqeCatlD/SvySj/CotUSg/MTV1Lv6WUZIM8NPdw9 dyKOxOglrnE2EKtHB4ZDys4C+2zM5E2DoGmeq7SWJM5SyEFlI2eHCwzuVQuo13tkRluH a9gUPKZaCFyiI4ZW+B6RZ5Fn8OhSJAtW/aqsD+epgF2Bh0D4QmR8ZTPgyTrjUJ79drYx KSwQ== 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=J0oUh1HGVLRQQ9nDijrIkM1ObzjRLtBGly6wGHgIAMg=; b=Y+Ydj/QAVPo1EEr+cQNOX1vuYFDCWASn6uELXghJWK2qvMgvwardr7KQ7Acg88l396 aH6K4Cb1Dsynr/9G6RCOEUcfQNEVJb707s+i61WIBzWl8EoD60q8AyCsTAYbHao9UHKB Olb8CErpec1c74Roa7dMh0e/zIEMuph3P+R58f6s4z0HK2yhXatTeqMtNlm13e9pFOEb libSHdowHF595mf5TKkzDaaccULMdjCxwT6cFnKU4cPhFpoW3ilMpMVcJ18t0olnRYD3 TxdieLQtytSsG50Mj/AKKeBPJU4ng9zJ0tljJPaSvoyOrQ3H9qnuGLp4dCT7Np9zP4UY uP3A== X-Gm-Message-State: ALyK8tK4r2VdhL7MkJq+q0rgPYS6eQpOwKwhzpWFlnZEwCaYDk1VsHM38ch59IMPbEz9IA== X-Received: by 10.98.41.198 with SMTP id p189mr28779153pfp.18.1466702209502; Thu, 23 Jun 2016 10:16:49 -0700 (PDT) Received: from localhost.localdomain ([192.55.55.41]) by smtp.gmail.com with ESMTPSA id n124sm1450391pfn.44.2016.06.23.10.16.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Jun 2016 10:16:49 -0700 (PDT) From: Jonathan Afek To: hostap@lists.infradead.org Subject: [PATCH 5/8] tests: setup the wlantest only once in check_qos_map() Date: Thu, 23 Jun 2016 20:16:33 +0300 Message-Id: <1466702196-26828-5-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_928256_D8622828 X-CRM114-Status: UNSURE ( 9.47 ) 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 tests call the check_qos_map() func more than once. Make sure it setups the wlantest only once on the first time it is called. Signed-off-by: Jonathan Afek --- tests/hwsim/test_ap_qosmap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_qosmap.py b/tests/hwsim/test_ap_qosmap.py index 48348bf..a98176b 100644 --- a/tests/hwsim/test_ap_qosmap.py +++ b/tests/hwsim/test_ap_qosmap.py @@ -17,7 +17,8 @@ def check_qos_map(ap, hapd, dev, sta, dscp, tid, ap_tid=None): if not ap_tid: ap_tid = tid bssid = ap['bssid'] - Wlantest.setup(hapd) + if not Wlantest.setup_done: + Wlantest.setup(hapd) wt = Wlantest() wt.clear_sta_counters(bssid, sta) hwsim_utils.test_connectivity(dev, hapd, dscp=dscp, config=False)