From patchwork Thu Oct 22 15:01:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Otcheretianski X-Patchwork-Id: 1386301 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=2001:8b0:10b:1231::1; helo=merlin.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=intel.com Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 4CH9cL6b5kz9sRK for ; Fri, 23 Oct 2020 02:04:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=KRZDAmS+OwtjzjZCGrrETLowYC5PDoAveMfxtwPvdxY=; b=JA4xOFDERIJFH1Q6pAC2+RwgM3 CGkkYEx5pdTHINaXV92SYzdcXQYmMfOmicRjK1PJFzDLltZ+8u+1gZ4ztMBXnwURtJKhaODXa1DbZ eWprLtKpjFvGxliFFwXGpFycwC0AlO1ksujTBEotuCPh5bHh1MMcIFFuVmHCw3TUZr0WHrKCtUt3s VQYY4vvGBGkUE1+B6Dgi5tTaZyT7uYWNup1vD0EC6HZUM0iOLVoydSF2jHGjV3AvYtynQrELECbgu qnF181ypKEiefZWEhAqwNr+lHDSSrhwhipSVMG0qvQ5GTXTe5IMsc7HMqr/ic7gM569phEB3vnoX1 19VGk96w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVc7D-000426-Mf; Thu, 22 Oct 2020 15:02:55 +0000 Received: from mga09.intel.com ([134.134.136.24]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVc7B-00041M-9X for hostap@lists.infradead.org; Thu, 22 Oct 2020 15:02:54 +0000 IronPort-SDR: u1JOAao6j72klooZhuffW/wXOW3HzudpOKO3pkYmW/ImGLt8R0L17SdlzLRU2bJDceEBfs17OE OEo5HvZwjy/A== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="167659805" X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="167659805" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 08:01:54 -0700 IronPort-SDR: d3kiLtf9kLDX2yyZ4HBGF1/CMn652iMkI8odnBNoke+blGLujgzDdnJl0kF6oV2Y4yp7bfOeFv vqzRu9Gksvzg== X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="348791820" Received: from ralon-mobl.ger.corp.intel.com (HELO localhost.localdomain) ([10.214.247.1]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 08:01:52 -0700 From: Andrei Otcheretianski To: hostap@lists.infradead.org Subject: [PATCH] tests: Skip dpp_enterprise_tcp tests without OpenSSL Date: Thu, 22 Oct 2020 18:01:37 +0300 Message-Id: <20201022150137.23032-1-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201022_110253_470005_9575E529 X-CRM114-Status: GOOD ( 12.43 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [134.134.136.24 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [134.134.136.24 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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: Andrei Otcheretianski Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Skip these tests if OpenSSL wasn't loaded, instead of crashing. Signed-off-by: Andrei Otcheretianski --- tests/hwsim/test_dpp.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index ff03814306..5a9d1eeaef 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -5967,6 +5967,9 @@ def test_dpp_enterprise_reject(dev, apdev, params): def test_dpp_enterprise_tcp(dev, apdev, params): """DPP over TCP for enterprise provisioning""" + if not openssl_imported: + raise HwsimSkip("OpenSSL python method not available") + try: run_dpp_enterprise_tcp(dev, apdev, params) finally: @@ -6054,6 +6057,9 @@ def run_dpp_enterprise_tcp_end(params, dev, wt): def test_dpp_enterprise_tcp2(dev, apdev, params): """DPP over TCP for enterprise provisioning (Controller initiating)""" + if not openssl_imported: + raise HwsimSkip("OpenSSL python method not available") + try: run_dpp_enterprise_tcp2(dev, apdev, params) finally: