From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DF665A0524; Thu, 4 Feb 2021 11:09:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B835E240663; Thu, 4 Feb 2021 11:09:55 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 41C0F240662 for ; Thu, 4 Feb 2021 11:09:53 +0100 (CET) IronPort-SDR: bYtNs5UCHdoZakXMfTbBLhdNj3LuR1uz3GsAnJRVUknLWXJexiIsCdRD4+KOhbPGyE5DzoA7Hu eNYBt6uEAmig== X-IronPort-AV: E=McAfee;i="6000,8403,9884"; a="266043448" X-IronPort-AV: E=Sophos;i="5.79,400,1602572400"; d="scan'208";a="266043448" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 02:09:52 -0800 IronPort-SDR: lPIcxtgqn2LGfrJ4SzCnuvKNofLH/WL2k6aFfvqyh43NPCsxcmw4YQccw5r1BMBxkWs4mZxKtC TlVC+fnpWGFQ== X-IronPort-AV: E=Sophos;i="5.79,400,1602572400"; d="scan'208";a="583148398" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 02:09:51 -0800 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Thu, 4 Feb 2021 18:09:38 +0800 Message-Id: <20210204100938.362357-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V2] tests/cdbma:fix multi_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" v1: When start multi apps, if one as primay, another as secondary, we need use the same prefix to start. v2: Fix world spelling errors. Signed-off-by: Ling Wei --- 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') -- 2.25.1