From: "zhao,meijuan" <meijuanx.zhao@intel.com>
To: dts@dpdk.org
Cc: "zhao,meijuan" <meijuanx.zhao@intel.com>
Subject: [dts] [PATCH V1] change RTE_LIBRTE_VHOST param and vm_testpmd location and vm close method
Date: Tue, 19 Dec 2017 17:26:43 +0800 [thread overview]
Message-ID: <1513675603-81487-1-git-send-email-meijuanx.zhao@intel.com> (raw)
in commons_base file, no RTE_LIBRTE_VHOST var; in tear_down method, vm_testpmd is none, so need to set value in set_up method; vm close fail
Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
---
tests/TestSuite_vxlan_sample.py | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/tests/TestSuite_vxlan_sample.py b/tests/TestSuite_vxlan_sample.py
index 8115a18..6696345 100644
--- a/tests/TestSuite_vxlan_sample.py
+++ b/tests/TestSuite_vxlan_sample.py
@@ -101,8 +101,7 @@ class TestVxlanSample(TestCase):
self.vm_dut = None
self.tep_app = "./examples/tep_termination/build/tep_termination"
self.vxlan_port = 4789
- self.vm_testpmd = "./x86_64-native-linuxapp-gcc/app/testpmd -c f -n 3" \
- + " -- -i --txqflags=0xf00 --disable-hw-vlan"
+
# params for tep_termination
self.cores = self.dut.get_core_list("1S/4C/1T", socket=self.socket)
@@ -135,6 +134,8 @@ class TestVxlanSample(TestCase):
"""
Run before each test case.
"""
+ self.vm_testpmd = "./x86_64-native-linuxapp-gcc/app/testpmd -c f -n 3" \
+ + " -- -i --txqflags=0xf00 --disable-hw-vlan"
# create coremask
self.coremask = utils.create_mask(self.cores)
@@ -212,16 +213,13 @@ class TestVxlanSample(TestCase):
return True
def clear_vxlan_sample_env(self):
- if self.vm_dut:
- self.vm_dut.kill_all()
- time.sleep(1)
-
- if self.vm:
- self.vm.stop()
+ if getattr(self, 'vm', None):
+ self.dut.virt_exit()
+ time.sleep(5)
+ self.vm_testpmd = None
+ self.vm_dut_ports = None
self.vm = None
- self.dut.virt_exit()
-
def mac_address_add(self, number):
if number > 15:
return ''
@@ -632,8 +630,8 @@ class TestVxlanSample(TestCase):
Run after each test suite.
"""
# Restore the config file and recompile the package.
- self.dut.send_expect("sed -i -e 's/RTE_LIBRTE_VHOST=y$/"
- + "RTE_LIBRTE_VHOST=n/' config/common_base",
+ self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_VHOST=y$/"
+ + "CONFIG_RTE_LIBRTE_VHOST=n/' config/common_base",
"# ", 30)
# temporary disable skip_setup
skip_setup = self.dut.skip_setup
--
1.9.3
reply other threads:[~2017-12-19 9:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1513675603-81487-1-git-send-email-meijuanx.zhao@intel.com \
--to=meijuanx.zhao@intel.com \
--cc=dts@dpdk.org \
/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).