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 20624A09E5; Tue, 8 Dec 2020 11:03:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7B8BBC938; Tue, 8 Dec 2020 11:03:45 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 4293CA3 for ; Tue, 8 Dec 2020 11:03:43 +0100 (CET) IronPort-SDR: 9n/1OGOlZC7c3kyCVVUhIqpMoHe2EU1tUil82XZN9j0R+gEH/32pQPkOHkz6cMcIiQrMmH+Ytw IYtSkeZrywtw== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293332" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293332" 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:37 -0800 IronPort-SDR: 9cd4DyyxghWg8SzxB0ifOp8fnfhIaz0dwn1pRXR0xBo1IJYpx+LhdgC4bOshGb24uImFmDUD2v NTmSKtHYfKTQ== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575533" 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:36 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:01 +0800 Message-Id: <20201208100627.9792-3-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 02/28] tests/TestSuite_hotplug: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_hotplug.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_hotplug.py b/tests/TestSuite_hotplug.py index 22df2306..f40c291c 100644 --- a/tests/TestSuite_hotplug.py +++ b/tests/TestSuite_hotplug.py @@ -55,6 +55,7 @@ class TestPortHotPlug(TestCase): self.dut_ports = self.dut.get_ports(self.nic) self.verify(len(self.dut_ports) >= 2, "Insufficient ports") cores = self.dut.get_core_list("1S/4C/1T") + self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.coremask = utils.create_mask(cores) self.port = len(self.dut_ports) - 1 if self.drivername == "vfio-pci:noiommu": @@ -93,7 +94,7 @@ class TestPortHotPlug(TestCase): """ first run testpmd after attach port """ - cmd = "%s -c %s -n %s -- -i" % (self.path, self.coremask, self.dut.get_memory_channels()) + cmd = "%s %s -- -i" % (self.path, self.eal_para) self.dut.send_expect(cmd, "testpmd>", 60) session_secondary = self.dut.new_session() session_secondary.send_expect( @@ -137,7 +138,7 @@ class TestPortHotPlug(TestCase): "./usertools/dpdk-devbind.py --bind=%s %s" % (self.driver_name, self.dut.ports_info[self.port]['pci']), "#", 60) self.dut.close_session(session_secondary) - cmd = "%s -c %s -n %s -- -i" % (self.path, self.coremask, self.dut.get_memory_channels()) + cmd = "%s %s -- -i" % (self.path, self.eal_para) self.dut.send_expect(cmd, "testpmd>", 60) self.detach(self.port) self.attach(self.port) -- 2.17.1