From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1 6/7]tests/TestSuite_vhost_virtio_pmd_interrupt: fix kill l3fwd-power
Date: Wed, 8 Apr 2020 17:18:53 +0800 [thread overview]
Message-ID: <1586337534-448577-7-git-send-email-qimaix.xiao@intel.com> (raw)
In-Reply-To: <1586337534-448577-1-git-send-email-qimaix.xiao@intel.com>
Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_vhost_virtio_pmd_interrupt.py | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/tests/TestSuite_vhost_virtio_pmd_interrupt.py b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
index ca69932..bf50b07 100644
--- a/tests/TestSuite_vhost_virtio_pmd_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
@@ -268,13 +268,18 @@ class TestVhostVirtioPmdInterrupt(TestCase):
"""
close all vms
"""
- self.vm_dut.send_expect("^c", "#", 15)
- self.vm_dut.send_expect("cp /tmp/main.c ./examples/l3fwd-power/", "#", 15)
- out = self.vm_dut.build_dpdk_apps('examples/l3fwd-power')
- self.vm.stop()
+ if self.vm_dut is not None:
+ vm_dut2 = self.vm_dut.create_session(name="vm_dut2")
+ vm_dut2.send_expect("killall l3fwd-power", "# ", 10)
+ # self.vm_dut.send_expect("killall l3fwd-power", "# ", 60, alt_session=True)
+ self.vm_dut.send_expect("cp /tmp/main.c ./examples/l3fwd-power/", "#", 15)
+ out = self.vm_dut.build_dpdk_apps('examples/l3fwd-power')
+ self.vm.stop()
+ self.dut.close_session(vm_dut2)
self.vhost_user.send_expect("quit", "#", 10)
self.dut.close_session(self.vhost_user)
+
def test_perf_virtio_pmd_interrupt_with_4queues(self):
"""
wake up virtio_user 0.95 core with l3fwd-power sample
@@ -329,7 +334,7 @@ class TestVhostVirtioPmdInterrupt(TestCase):
Run after each test case.
"""
self.stop_all_apps()
- self.dut.send_expect("killall -s INT testpmd", "#")
+ self.dut.kill_all()
self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
def tear_down_all(self):
--
1.8.3.1
next prev parent reply other threads:[~2020-04-08 9:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-08 9:18 [dts] [PATCH V1 0/7] fix l3fwd-power quit failed Xiao Qimai
2020-04-08 9:18 ` [dts] [PATCH V1 1/7]tests/TestSuite_iavf: fix kill l3fwd-power Xiao Qimai
2020-04-08 9:18 ` [dts] [PATCH V1 2/7]tests/TestSuite_kernelpf_iavf: " Xiao Qimai
2020-04-08 9:18 ` [dts] [PATCH V1 3/7]tests/TestSuite_vf_interrupt_pmd: " Xiao Qimai
2020-04-08 9:18 ` [dts] [PATCH V1 4/7]tests/TestSuite_vhost_enqueue_interrupt: " Xiao Qimai
2020-04-08 9:18 ` [dts] [PATCH V1 5/7]tests/TestSuite_vhost_event_idx_interrupt: " Xiao Qimai
2020-04-08 9:18 ` Xiao Qimai [this message]
2020-04-08 9:18 ` [dts] [PATCH V1 7/7]tests/TestSuite_vhost_virtio_user_interrupt: " Xiao Qimai
2020-04-17 5:26 ` [dts] [PATCH V1 0/7] fix l3fwd-power quit failed Zhao, XinfengX
2020-04-20 2:09 ` Tu, Lijuan
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=1586337534-448577-7-git-send-email-qimaix.xiao@intel.com \
--to=qimaix.xiao@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).