From: Phil Yang <phil.yang@arm.com>
To: dts@dpdk.org
Cc: nd@arm.com, Jianbo.Liu@arm.com, Herbert.Guan@arm.com,
phil.yang@arm.com, yong.liu@intel.com
Subject: [dts] [PATCH] tests/vhost_pmd_xstats: Optimize for multi-platform
Date: Mon, 4 Dec 2017 09:25:29 +0800 [thread overview]
Message-ID: <1512350729-3124-1-git-send-email-phil.yang@arm.com> (raw)
Add multi platform support.
Signed-off-by: Phil Yang <phil.yang@arm.com>
---
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
next reply other threads:[~2017-12-04 1:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-04 1:25 Phil Yang [this message]
2017-12-22 14:18 ` Liu, Yong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1512350729-3124-1-git-send-email-phil.yang@arm.com \
--to=phil.yang@arm.com \
--cc=Herbert.Guan@arm.com \
--cc=Jianbo.Liu@arm.com \
--cc=dts@dpdk.org \
--cc=nd@arm.com \
--cc=yong.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).