From patchwork Tue Feb 2 14:37:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 87614 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8AD08A052A; Tue, 2 Feb 2021 07:44:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B14C24026E; Tue, 2 Feb 2021 07:44:04 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 9B19B24026D for ; Tue, 2 Feb 2021 07:44:02 +0100 (CET) IronPort-SDR: rSzAmd6qFNeHb2Bdm5Egr5q7IkY6Wwq4yMTwjw9cv3Q53M58eoxcc9DauLZgrn0DKTrhfYC8Da FIC2wPUnVksA== X-IronPort-AV: E=McAfee;i="6000,8403,9882"; a="180883253" X-IronPort-AV: E=Sophos;i="5.79,394,1602572400"; d="scan'208";a="180883253" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 22:44:01 -0800 IronPort-SDR: J6tBtcBid8EC/0uTfnsqAyB4S57VjAKuPxbwHOb8JiozHI+TAaXjV0fC2oUIb9hyuUt0eAHwRN P/smlaW7ny8w== X-IronPort-AV: E=Sophos;i="5.79,394,1602572400"; d="scan'208";a="581833703" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 22:43:59 -0800 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Tue, 2 Feb 2021 14:37:15 +0000 Message-Id: <20210202143715.3877934-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dts] [PATCH V1] tests/vhost_user_interrupt:modify execute virtio-user server side testpmd command after client side started X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" 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 Tested-by: Wei Ling Acked-by: Wang, Yinan --- 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):