test suite reviews and discussions
 help / color / mirror / Atom feed
From: Ling Wei <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Ling Wei <weix.ling@intel.com>
Subject: [dts] [PATCH V1] tests/vhost_user_interrupt:modify execute virtio-user server side testpmd command after client side started
Date: Tue,  2 Feb 2021 14:37:15 +0000	[thread overview]
Message-ID: <20210202143715.3877934-1-weix.ling@intel.com> (raw)

In DPDK 9af79db20f4cf, when launch virtio-user testpmd as server mode,
virtio-user server side testpmd expected character will be
'wait for client side started...', after client side started,
it change to 'testpmd>', so dts need modify execute virtio-user
server side testpmd command after client side started.

Signed-off-by: Ling Wei <weix.ling@intel.com>
---
 tests/TestSuite_vhost_user_interrupt.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_vhost_user_interrupt.py b/tests/TestSuite_vhost_user_interrupt.py
index bc340c4..2a10199 100644
--- a/tests/TestSuite_vhost_user_interrupt.py
+++ b/tests/TestSuite_vhost_user_interrupt.py
@@ -108,8 +108,7 @@ class TestVhostUserInterrupt(TestCase):
             eal_params += " --single-file-segments"
         para = " -- -i --rxq=%d --txq=%d --rss-ip" % (self.queues, self.queues)
         command_line_client =  self.app_testpmd_path + " " + eal_params + para
-        self.virtio_user.send_expect(command_line_client, "testpmd> ", 120)
-        self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20)
+        self.virtio_user.send_expect(command_line_client, "waiting for client connection...", 120)
 
     def get_cbdma_ports_info_and_bind_to_dpdk(self, cbdma_num):
         """
@@ -231,6 +230,7 @@ class TestVhostUserInterrupt(TestCase):
         self.get_core_list()
         self.lanuch_virtio_user()
         self.lanuch_l3fwd_power()
+        self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20)
         self.send_and_verify()
 
     def test_wake_up_split_ring_vhost_user_core_with_l3fwd_power_sample_when_multi_queues_enabled(self):
@@ -241,6 +241,7 @@ class TestVhostUserInterrupt(TestCase):
         self.get_core_list()
         self.lanuch_virtio_user()
         self.lanuch_l3fwd_power()
+        self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20)
         self.send_and_verify()
 
     def test_wake_up_packed_ring_vhost_user_core_with_l3fwd_power_sample(self):
@@ -251,6 +252,7 @@ class TestVhostUserInterrupt(TestCase):
         self.get_core_list()
         self.lanuch_virtio_user(packed=True)
         self.lanuch_l3fwd_power()
+        self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20)
         self.send_and_verify()
 
     def test_wake_up_packed_ring_vhost_user_core_with_l3fwd_power_sample_when_multi_queues_enabled(self):
@@ -261,6 +263,7 @@ class TestVhostUserInterrupt(TestCase):
         self.get_core_list()
         self.lanuch_virtio_user(packed=True)
         self.lanuch_l3fwd_power()
+        self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20)
         self.send_and_verify()
 
     def test_wake_up_split_ring_vhost_user_core_with_l3fwd_power_sample_when_multi_queues_enabled_and_cbdma_enabled(self):
@@ -271,6 +274,7 @@ class TestVhostUserInterrupt(TestCase):
         self.get_core_list()
         self.lanuch_virtio_user(cbdma=True)
         self.lanuch_l3fwd_power(cbdma=True)
+        self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20)
         self.send_and_verify()
 
     def tear_down(self):
-- 
2.25.1


             reply	other threads:[~2021-02-02  6:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02 14:37 Ling Wei [this message]
2021-02-02  6:46 ` Ling, WeiX
2021-02-02 13:48   ` Wang, Yinan
2021-02-03  6:27 ` 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=20210202143715.3877934-1-weix.ling@intel.com \
    --to=weix.ling@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).