From patchwork Sun Jan 12 22:02:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Dziedzic X-Patchwork-Id: 1221876 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=rTRanomg; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=jBgsjMlX; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47wrM8050Yz9sPW for ; Mon, 13 Jan 2020 09:03:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=puCcfVHZjQVgVmLBppcDZtfcdOCrlFuEHGENd3nHhQU=; b=rTRanomgChErS8LatratsirNfy hYD4EBRFfKwaF6EUz3s13Z4hbc1Gj6znCXzZpNWIX43bZ05udIkcZI/KQKSFpmQ3j2XPuRR0vDvr4 SWzbASGK9M00Kxv8BHzhP/IOBAiuys2O/MDMKKoFTl49oUh28gTBE46YvfG0yysWDnj9r0IY74mDS rY5PpTTXJSdEUOkMFJVdaNxrNOXTWFqrFU39VgsWGX8lt+dfGP0Hgvh1XWuJ6H4CbFKRPln6giypu y0GGxhNj/BzypNPD9QQRCm0H+AC3LrglknTx34W6JobPCVeEufW2cidM0mZCpmwggdNKbMa5pKQQo b+yjEbng==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iqlK8-0002c1-PX; Sun, 12 Jan 2020 22:03:08 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iqlJf-00026y-Id for hostap@lists.infradead.org; Sun, 12 Jan 2020 22:02:40 +0000 Received: by mail-lf1-x12b.google.com with SMTP id y19so5403316lfl.9 for ; Sun, 12 Jan 2020 14:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/3EbpcyHlJ06fS7NQ8wWeJ84StSJuYP6CXQBHgqtHz4=; b=jBgsjMlX5yxbx/KU5YuZc1Gh2bZKmxSsmgJsVnjwhOsIZPAnd435UmMmlP232tu27+ o+7t5pjJUVx1+4J4sxp4ys1eZ8nwUFXZP2bvjPUE4G39E+833rAuxQSnJSMQFrG0itB9 rD6QlEjejGkycsgH1YgF9BACOSool27bmxXKuW2iRjQ+doS1lVmZislC/yLupxvthQr3 AL5NfevvNl5lqO/8mTCG83iTAM29SyNz1QOTrj4aApANNfNZrA2xYzfULmjcY5/HKNAc nvpYPkAn/STCvjWlsq6ysy5wMdVI8gBTa6xZoWxZbFhvxp5i9gKt18lD1kEAPSguM+lI PVEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/3EbpcyHlJ06fS7NQ8wWeJ84StSJuYP6CXQBHgqtHz4=; b=rF6uvkzUFYfnDU6Z/a1tvGHkU81qu9aXAKCOmV8k933jpaR/GWwi6z208F/A8cdWHQ aHJG+5qJCMR9tWdPBEnTfOKvkdNgb+ils1jX6YYN0rcXl9MRhCOHvlFRrSqbmuc/QgcV yvQfRSw8a2wuLokzRBP/UiV5kmOVQQPs9IrBh0Ad5FpVQSpIwmSu0KkFyU3l4MMpoQtt 9/FggZGbmE3dArBum87qjETxiwC9RCXNL56GbYM5daZ8OtwRDkVosCbtuxBpabrn1pZv mMNyB1y0enJOCSTk1AhrswYQnE2yemKrySPxXWSJvYQ4P04Xohme4aHKRo7HWDQC6G// K0yw== X-Gm-Message-State: APjAAAVduQos0itVt7HHEf9UBjctEhjcc2NoL0Sa9arz9u7S89WERBjI zwzfiazWuqybqbYksHwbGcuiA5ne X-Google-Smtp-Source: APXvYqztA2s4gZ9zba7QEOcAd6h5QI5fZDyQfKJrjllDwmSS7HbgjDknE0NIXHsci/xZaLhyGcyy8g== X-Received: by 2002:a19:f10e:: with SMTP id p14mr7803687lfh.3.1578866557633; Sun, 12 Jan 2020 14:02:37 -0800 (PST) Received: from e4300.lan ([62.141.210.6]) by smtp.gmail.com with ESMTPSA id u18sm4831325lje.69.2020.01.12.14.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jan 2020 14:02:37 -0800 (PST) From: Janusz Dziedzic To: hostap@lists.infradead.org Subject: [PATCH 04/12] tests: remote: allow more hwsim tests Date: Sun, 12 Jan 2020 23:02:18 +0100 Message-Id: <20200112220226.5056-4-janusz.dziedzic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200112220226.5056-1-janusz.dziedzic@gmail.com> References: <20200112220226.5056-1-janusz.dziedzic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200112_140239_610554_DCF3AD81 X-CRM114-Status: GOOD ( 10.40 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:12b listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (janusz.dziedzic[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: j@w1.fi, Janusz Dziedzic MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Allow tests cases that require more than two arguments. Before we block them. Signed-off-by: Janusz Dziedzic --- tests/remote/hwsim_wrapper.py | 6 ++++-- tests/remote/run-tests.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/remote/hwsim_wrapper.py b/tests/remote/hwsim_wrapper.py index 36df8d7a8..38f927f6e 100644 --- a/tests/remote/hwsim_wrapper.py +++ b/tests/remote/hwsim_wrapper.py @@ -67,13 +67,15 @@ def run_hwsim_test(devices, setup_params, refs, duts, monitors, hwsim_test): dut_host.dev['bssid'] = rutils.get_mac_addr(dut_host) apdev.append(dut_host.dev) - # run hwsim test/currently only 2 params tests if hwsim_test.__code__.co_argcount == 1: hwsim_test(dev) elif hwsim_test.__code__.co_argcount == 2: hwsim_test(dev, apdev) else: - raise Exception("more than 2 arguments required") + params = {} + params['long'] = 1 + params['logdir'] = local_log_dir + hwsim_test(dev, apdev, params) # hostapd/wpa_supplicant cleanup for wpas in dev: diff --git a/tests/remote/run-tests.py b/tests/remote/run-tests.py index b68610816..8c5d02b44 100755 --- a/tests/remote/run-tests.py +++ b/tests/remote/run-tests.py @@ -200,7 +200,7 @@ def main(): t = None for tt in hwsim_tests: name = tt.__name__.replace('test_', '', 1) - if name == test and tt.__code__.co_argcount <= 2: + if name == test: t = tt break if not t: