From patchwork Fri Sep 4 08:18:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, XiX" X-Patchwork-Id: 76526 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 85C7BA04B1; Fri, 4 Sep 2020 10:17:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 388AC1C10E; Fri, 4 Sep 2020 10:17:48 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7F50B1C0C0 for ; Fri, 4 Sep 2020 10:17:45 +0200 (CEST) IronPort-SDR: cefRBVR1BaEStX0emcBiBriFVwW/Fxl4ZwywjHNRwxFHxdfd0CUM6/Ur2sDcCPHLJFlNchOubg YCDqzL/Dpvjw== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="175763322" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="175763322" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2020 01:17:45 -0700 IronPort-SDR: iIDuBEbXmNFGjopRnuCrOmp+LER/77hSh88prx5loe6XtdGsuOxlL26kCtF5mfJDFHaoNDQCoG ji5Y+Us9d51g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782776" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga002.jf.intel.com with ESMTP; 04 Sep 2020 01:17:43 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:37 +0800 Message-Id: <1599207525-22123-30-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1599207525-22123-1-git-send-email-xix.zhang@intel.com> References: <1599207525-22123-1-git-send-email-xix.zhang@intel.com> Subject: [dts] [dts 30/38] tests/TestSuite_pvp_vhost_user_built_in_net_driver.py:support meson build 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: xizhan4x --- tests/TestSuite_pvp_vhost_user_built_in_net_driver.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_pvp_vhost_user_built_in_net_driver.py b/tests/TestSuite_pvp_vhost_user_built_in_net_driver.py index 1b7d9c5..a0d1667 100644 --- a/tests/TestSuite_pvp_vhost_user_built_in_net_driver.py +++ b/tests/TestSuite_pvp_vhost_user_built_in_net_driver.py @@ -81,6 +81,8 @@ class TestPVPVhostUserBuiltInNetDriver(TestCase): # set memory size self.verify(self.sockets > 0, 'cpu socket should not be zero') self.mem_size = ','.join(['2048']*self.sockets) + self.path=self.dut.apps_name['test-pmd'] + self.testpmd_name = self.path.split("/")[-1] def set_up(self): """ @@ -89,7 +91,7 @@ class TestPVPVhostUserBuiltInNetDriver(TestCase): self.dut.send_expect("rm -rf ./vhost-net*", "# ") self.dut.send_expect("rm -rf ./vhost.out", "# ") self.dut.send_expect("killall -s INT vhost", "# ") - self.dut.send_expect("killall -s INT testpmd", "# ") + self.dut.send_expect("killall -s INT %s" % self.testpmd_name , "#") self.vhost_switch = self.dut.new_session(suite="vhost-switch") self.virtio_user = self.dut.new_session(suite="virtio-user") self.pmd_out = PmdOutput(self.dut, self.virtio_user) @@ -210,7 +212,7 @@ class TestPVPVhostUserBuiltInNetDriver(TestCase): 'net_virtio_user0,mac=%s,path=./vhost-net,queues=1' % self.virtio_mac]) if self.check_2M_env: eal_param += " --single-file-segments" - command_line_user = "./%s/app/testpmd " % self.target + eal_param + " -- -i --rxq=1 --txq=1" + command_line_user = self.path + eal_param + " -- -i --rxq=1 --txq=1" self.virtio_user.send_expect(command_line_user, "testpmd> ", 120) self.virtio_user.send_expect("set fwd mac", "testpmd> ", 120) self.virtio_user.send_expect("start tx_first", "testpmd> ", 120) @@ -240,7 +242,7 @@ class TestPVPVhostUserBuiltInNetDriver(TestCase): """ Run after each test case. """ - self.dut.send_expect("killall -s INT testpmd", "# ") + self.dut.send_expect("killall -s INT %s" % self.testpmd_name , "#") self.dut.send_expect("killall -s INT vhost", "# ") def tear_down_all(self):