From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 1E825237 for ; Mon, 4 Dec 2017 02:25:42 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2F3321435; Sun, 3 Dec 2017 17:25:41 -0800 (PST) Received: from phil-VirtualBox.shanghai.arm.com (phil-virtualbox.shanghai.arm.com [10.169.38.30]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9F8103F236; Sun, 3 Dec 2017 17:25:39 -0800 (PST) From: Phil Yang To: dts@dpdk.org Cc: nd@arm.com, Jianbo.Liu@arm.com, Herbert.Guan@arm.com, phil.yang@arm.com, yong.liu@intel.com Date: Mon, 4 Dec 2017 09:25:29 +0800 Message-Id: <1512350729-3124-1-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH] tests/vhost_pmd_xstats: Optimize for multi-platform 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: , X-List-Received-Date: Mon, 04 Dec 2017 01:25:42 -0000 Add multi platform support. Signed-off-by: Phil Yang --- tests/TestSuite_vhost_pmd_xstats.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py index 812cb94..2b95536 100644 --- a/tests/TestSuite_vhost_pmd_xstats.py +++ b/tests/TestSuite_vhost_pmd_xstats.py @@ -79,7 +79,8 @@ class TestVhostPmdXstats(TestCase): self.dut.send_expect("rm -rf ./vhost.out", "#") self.dut.send_expect("rm -rf ./vhost-net*", "#") self.dut.send_expect("killall vhost-switch", "#") - self.dut.send_expect("killall qemu-system-x86_64", "#") + dut_arch = self.dut.send_expect("uname -m", "#") + self.dut.send_expect("killall qemu-system-%s" % dut_arch, "#") def vm_testpmd_start(self): """ @@ -144,7 +145,7 @@ class TestVhostPmdXstats(TestCase): """ prepare all of the conditions for start """ - self.dut.send_expect("./%s/app/testpmd -c %s -n %s --socket-mem 1024,0 --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i --nb-cores=1" % + self.dut.send_expect("./%s/app/testpmd -c %s -n %s --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i --nb-cores=1" % (self.target, self.coremask, self.dut.get_memory_channels()), "testpmd>", 60) self.start_onevm() self.vm_testpmd_start() -- 2.7.4