From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2DDCAA2EEB for ; Thu, 12 Sep 2019 09:52:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 81DE61E565; Thu, 12 Sep 2019 09:52:58 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 198F01BE86 for ; Thu, 12 Sep 2019 09:52:56 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Sep 2019 00:52:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="scan'208";a="179285900" Received: from dpdk-moyufen06.sh.intel.com ([10.67.117.220]) by orsmga008.jf.intel.com with ESMTP; 12 Sep 2019 00:52:54 -0700 From: yufengmx To: dts@dpdk.org, yinan.wang@intel.com, lihongx.ma@intel.com Cc: yufengmx Date: Thu, 12 Sep 2019 15:54:21 +0800 Message-Id: <20190912075421.19400-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190912075421.19400-1-yufengx.mo@intel.com> References: <20190912075421.19400-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/1] tests/pvp_share_lib: fix condition check sequence issue X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" fix condition check sequence issue. Signed-off-by: yufengmx --- tests/TestSuite_pvp_share_lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_pvp_share_lib.py b/tests/TestSuite_pvp_share_lib.py index f117fd5..77c1704 100644 --- a/tests/TestSuite_pvp_share_lib.py +++ b/tests/TestSuite_pvp_share_lib.py @@ -46,12 +46,12 @@ class TestPVPShareLib(TestCase): """ Run at the start of each test suite. """ - self.core_config = "1S/4C/1T" self.dut_ports = self.dut.get_ports() + self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing") + self.core_config = "1S/4C/1T" self.ports_socket = self.dut.get_numa_id(self.dut_ports[0]) self.core_list = self.dut.get_core_list( self.core_config, socket=self.ports_socket) - self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing") self.verify(len(self.core_list) >= 4, "There has not enought cores to test this suite %s" % self.suite_name) -- 2.21.0