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 6A4FEA09E5; Tue, 8 Dec 2020 11:03:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 040E0C982; Tue, 8 Dec 2020 11:03:48 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id DA88BC922 for ; Tue, 8 Dec 2020 11:03:43 +0100 (CET) IronPort-SDR: qCpLNqP5aNCvx6LFWwnXbKnxBCdvD12NOxG0MYrQw//yGeWus992P57F80ZOZ2L9XuTgw5/O6S BZJTM6OjZM1A== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293329" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293329" 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:36 -0800 IronPort-SDR: APQ98xfF3OR2Amdg8fGBUZ6keN+8hkdHHcLCFjyKTSPWczIe8ziu9CZ+xCcEKafu74soBzNXqU 4dv2PCbb/TYw== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575512" 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:34 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:00 +0800 Message-Id: <20201208100627.9792-2-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 01/28] tests/TestSuite_hello_world: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_hello_world.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_hello_world.py b/tests/TestSuite_hello_world.py index cd843b53..8e2ffd90 100644 --- a/tests/TestSuite_hello_world.py +++ b/tests/TestSuite_hello_world.py @@ -66,8 +66,8 @@ class TestHelloWorld(TestCase): # get the mask for the first core cores = self.dut.get_core_list('1S/1C/1T') - coreMask = utils.create_mask(cores) - cmdline = "./%s -n 1 -c " % self.app_helloworld_path + coreMask + eal_para = self.dut.create_eal_parameters(cores='1S/1C/1T') + cmdline = "./%s %s" % (self.app_helloworld_path, eal_para) out = self.dut.send_expect(cmdline, "# ", 30) self.verify("hello from core %s" % cores[0] in out, "EAL not started on core%s" % cores[0]) @@ -86,9 +86,9 @@ class TestHelloWorld(TestCase): else: available_max_lcore = len(cores) + 1 - coreMask = utils.create_mask(cores[:available_max_lcore - 1]) + eal_para = self.dut.create_eal_parameters(cores=cores[:available_max_lcore - 1]) - cmdline = "./%s -n 1 -c " % self.app_helloworld_path + coreMask + cmdline = "./%s %s " % (self.app_helloworld_path, eal_para) out = self.dut.send_expect(cmdline, "# ", 50) for i in range(available_max_lcore - 1): self.verify("hello from core %s" % cores[i] in out, "EAL not started on core%s" % cores[i]) -- 2.17.1