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 82CC2A09E5; Tue, 8 Dec 2020 11:04:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1CC56C9C6; Tue, 8 Dec 2020 11:03:59 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D82A2C96E for ; Tue, 8 Dec 2020 11:03:57 +0100 (CET) IronPort-SDR: /XEoXVXx574+ScGjrPSyzLDyiLP72ovckLff4R7BTURJ/yjpHPG/J0a7+OlyKgkLbOeZGBjvKo fdXbP8phytOQ== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293413" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293413" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:57 -0800 IronPort-SDR: 1oab3/vLb1qpnzrrMeRgof1D/LG5y0UKEj3EY3dY+432uBjwU9Qg/89u8cJMn7BMhLpY2dlFBr giLB+ICbGjiw== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575812" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:56 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:15 +0800 Message-Id: <20201208100627.9792-17-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 16/28] tests/TestSuite_packet_ordering:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_packet_ordering.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_packet_ordering.py b/tests/TestSuite_packet_ordering.py index 067e886c..807a3c0d 100644 --- a/tests/TestSuite_packet_ordering.py +++ b/tests/TestSuite_packet_ordering.py @@ -60,6 +60,7 @@ class TestPacketOrdering(TestCase): # get socket and cores self.socket = self.dut.get_numa_id(self.dut_ports[0]) self.cores = self.dut.get_core_list("1S/4C/1T", socket=self.socket) + self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.verify(self.cores is not None, "Insufficient cores for speed testing") self.core_mask = utils.create_mask(self.cores) @@ -80,8 +81,8 @@ class TestPacketOrdering(TestCase): def start_application(self): app_name = self.dut.apps_name['packet_ordering'] - cmdline = app_name + '-c {0} -n {1} -- -p {2}'.\ - format(self.core_mask, self.dut.get_memory_channels(), self.port_mask) + cmdline = app_name + '{0} -- -p {1}'.\ + format(self.eal_para, self.port_mask) # Executes the packet ordering example app. self.dut.send_expect(cmdline, 'REORDERAPP', 120) -- 2.17.1