From patchwork Thu Feb 4 10:03:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 87733 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 45516A0524; Thu, 4 Feb 2021 11:03:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C5D6240657; Thu, 4 Feb 2021 11:03:24 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 84C32240656 for ; Thu, 4 Feb 2021 11:03:22 +0100 (CET) IronPort-SDR: Zyel7W9Eyhayw/oDbo6RA3UU5It6Xo24eCaA0WroVq0EVtleF/S2WoVDO1ceNID+507hSJ6bm8 4jH2mX4PYtcw== X-IronPort-AV: E=McAfee;i="6000,8403,9884"; a="160967766" X-IronPort-AV: E=Sophos;i="5.79,400,1602572400"; d="scan'208";a="160967766" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 02:03:19 -0800 IronPort-SDR: 47Bu2ErXm++AYorsFoG9KSxx4tk5H+xYekQy5pxlEpFKAZUDqOAopIIndIbZQl8+o42JKD0A6o xfsx3Tw8fTgQ== X-IronPort-AV: E=Sophos;i="5.79,400,1602572400"; d="scan'208";a="393090889" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 02:03:16 -0800 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Thu, 4 Feb 2021 18:03:03 +0800 Message-Id: <20210204100303.338830-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dts] [PATCH V1] tests/cdbma:fix muti_app_mode test case use the same prefix to start X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" When start muti apps, if one as primay, another as secondary, we need use the same prefix to start. Signed-off-by: Ling Wei Tested-by: Wei Ling --- tests/TestSuite_cbdma.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_cbdma.py b/tests/TestSuite_cbdma.py index f95e2942..9ece0f30 100755 --- a/tests/TestSuite_cbdma.py +++ b/tests/TestSuite_cbdma.py @@ -59,6 +59,7 @@ class TestCBDMA(TestCase): self.cbdma_proc = '--proc-type=primary' # default v_dev is None, case 1-6 use default None values, case7 use --vdev net_null_0 self.v_dev = '' + self.prefix_subfix = 'dpdk' + '_' + str(os.getpid()) + '_' + time.strftime("%Y%m%d%H%M%S", time.localtime()) out = self.dut.build_dpdk_apps('./examples/ioat') self.ioat_path = self.dut.apps_name['ioat'] self.verify('Error' not in out, 'compilation ioat error') @@ -382,11 +383,13 @@ class TestCBDMA(TestCase): self.get_core_list() self.pmdout = PmdOutput(self.dut) self.pmdout.start_testpmd(cores='', eal_param='--vdev net_null_0 --proc-type=primary', - ports=dev_info) + fixed_prefix=True, prefix=self.prefix_subfix, ports=dev_info) self.pmdout.execute_cmd('port stop all') self.cbdma_proc = '--proc-type=secondary' - eal_params = self.dut.create_eal_parameters(cores=self.core_list, - ports=dev_info) + self.logger.info(self.prefix_subfix) + eal_params = self.dut.create_eal_parameters(cores=self.core_list, fixed_prefix=True, + prefix=self.prefix_subfix ,ports=dev_info) + self.logger.info(eal_params) self.launch_ioatfwd_app(eal_params) self.send_session.send_expect('^C','#') self.pmdout.execute_cmd('^C')