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 8EE88A04DB; Thu, 10 Dec 2020 12:19:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80827BE75; Thu, 10 Dec 2020 12:19:45 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id F3FA2BC8A for ; Thu, 10 Dec 2020 12:19:42 +0100 (CET) IronPort-SDR: WG0Jif+Xjo60djKzOZm+eQomonOUxnYwB7OFYkVkznaadOihK1Txz+WFpsronYKJd0gEH4Cw4A 4RqyBM1AeUfg== X-IronPort-AV: E=McAfee;i="6000,8403,9830"; a="173473674" X-IronPort-AV: E=Sophos;i="5.78,408,1599548400"; d="scan'208";a="173473674" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2020 03:19:41 -0800 IronPort-SDR: f9t8Tudh0Ay/DIfuTfU9wk9vF/Ut2WYSN6ZE4XNL03TFr9E0zd9Z1ObAPs8/TObdWtjhSBXhB2 tL00GW1xvgvg== X-IronPort-AV: E=Sophos;i="5.78,408,1599548400"; d="scan'208";a="542804149" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2020 03:19:40 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Thu, 10 Dec 2020 19:22:29 +0800 Message-Id: <20201210112229.21854-1-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_cmdline:Modify the hard coded appparameter 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" Modify the hard coded appparameter to call the platform interface Signed-off-by: Zhou Jun --- tests/TestSuite_cmdline.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_cmdline.py b/tests/TestSuite_cmdline.py index 0172c4fd..c189934f 100644 --- a/tests/TestSuite_cmdline.py +++ b/tests/TestSuite_cmdline.py @@ -54,11 +54,9 @@ class TestCmdline(TestCase): self.verify("No such file" not in out, "compilation error 2") # Run cmdline app - cores = self.dut.get_core_list('1S/1C/1T') - coreMask = utils.create_mask(cores) self.app_cmdline_path = self.dut.apps_name['cmdline'] - self.dut.send_expect("./%s -n 1 -c " % self.app_cmdline_path + coreMask, "> ", 10) - + self.eal_para = self.dut.create_eal_parameters(cores="1S/1C/1T") + self.dut.send_expect(r'./%s %s' % (self.app_cmdline_path, self.eal_para), "> ", 10) def set_up(self): """ Run before each test case. -- 2.17.1