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 90A94A04B5; Fri, 11 Sep 2020 04:59:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B5541B75C; Fri, 11 Sep 2020 04:59:59 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 39686E07 for ; Fri, 11 Sep 2020 04:59:58 +0200 (CEST) IronPort-SDR: Kb9qrFV1q4qiwP4aga0RiPC4gw4W0hRJiTNU5AVRbpQn6TIT3hgkp3M98RnC86aI6xlkFda4i3 p9+ep3cEL33A== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222881668" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="222881668" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 19:59:57 -0700 IronPort-SDR: 1TxDbUK/E+Vk3N9IxvbX+Mg1RrK9dDnqFA37cm+ro/T/7bmea9UTpTdqus3goy6ctSBUdhmAzm tHVGlzmya3AQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="318135493" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 19:59:56 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 11 Sep 2020 10:57:58 +0800 Message-Id: <20200911025758.9246-6-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911025758.9246-1-weix.xie@intel.com> References: <20200911025758.9246-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 5/5] tests/TestSuite_dcf_lifecycle:support meson build method 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: Xie wei --- tests/TestSuite_dcf_lifecycle.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py index 6be7b24..76c29f8 100644 --- a/tests/TestSuite_dcf_lifecycle.py +++ b/tests/TestSuite_dcf_lifecycle.py @@ -302,8 +302,7 @@ class TestDcfLifeCycle(TestCase): return output def init_vf_dcf_testpmd(self): - self.vf_dcf_testpmd = "{}/{}/app/testpmd".format( - self.target_dir, self.dut.target) + self.vf_dcf_testpmd = self.dut.apps_name['test-pmd'] def start_vf_dcf_testpmd(self, pmd_opiton): whitelist_name, prefix = pmd_opiton @@ -359,16 +358,15 @@ class TestDcfLifeCycle(TestCase): return output def create_vf_testpmd2(self): - self.vf_testpmd2 = "{}/{}/app/testpmd_vf".format( - self.target_dir, self.dut.target) - cmd = 'rm -f {vf_pmd2};cp {vf_dcf_pmd} {vf_pmd2}'.format( + self.vf_testpmd2 = self.dut.apps_name['testpmd_vf'] + cmd = 'rm -f /root/dpdk/{vf_pmd2};cp /root/dpdk/{vf_dcf_pmd} /root/dpdk/{vf_pmd2}'.format( **{'vf_dcf_pmd': self.vf_dcf_testpmd, 'vf_pmd2': self.vf_testpmd2}) self.d_a_con(cmd) def init_vf_testpmd2(self): self.create_vf_testpmd2() self.vf_pmd2_session_name = 'vf_testpmd2' - self.vf_pmd2_session = self.dut.create_session( + self.vf_pmd2_session = self.dut.new_session( self.vf_pmd2_session_name) def start_vf_testpmd2(self, pmd_opiton): -- 2.17.1