From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F0039A00C4; Fri, 5 Jun 2020 11:26:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E6AF91D612; Fri, 5 Jun 2020 11:26:47 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 59FFE1D5DC for ; Fri, 5 Jun 2020 11:26:46 +0200 (CEST) IronPort-SDR: Vgym9XJm0uCJn+JPS8LSD8JjwIFUo3LRn1qNZqYmHGDd00Ky/IuBckD5PFcdbFE+fjTGL+N7o6 mXzqba0/lvJw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2020 02:26:46 -0700 IronPort-SDR: i6b2OWoqsMk3IWVuspDBQCDNvT88aEjbwGF4AVw0HSuGoBhFwiM8pkZLr9A2PCm4jQyachu2cl oTTO3UMY5cmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,475,1583222400"; d="scan'208";a="287676959" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 05 Jun 2020 02:26:45 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 5 Jun 2020 17:18:10 +0800 Message-Id: <1591348704-433901-4-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1591348704-433901-1-git-send-email-qimaix.xiao@intel.com> References: <1591348704-433901-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V2 03/17]loopback_virtio_user_server_mode: update mpps value to check perf X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Signed-off-by: Xiao Qimai --- tests/TestSuite_loopback_virtio_user_server_mode.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_loopback_virtio_user_server_mode.py b/tests/TestSuite_loopback_virtio_user_server_mode.py index 32ee1c3..742aa09 100644 --- a/tests/TestSuite_loopback_virtio_user_server_mode.py +++ b/tests/TestSuite_loopback_virtio_user_server_mode.py @@ -111,7 +111,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): start the testpmd of vhost-user and virtio-user start to send packets """ - session_rx.send_expect("start", "testpmd> ", 30) + session_rx.send_command("start", 3) session_tx.send_expect("start tx_first 32", "testpmd> ", 30) def check_port_throughput_after_port_stop(self): @@ -176,14 +176,15 @@ class TestLoopbackVirtioUserServerMode(TestCase): """ results = 0.0 results_row = [] + self.vhost.send_expect("show port stats all", "testpmd>", 60) for i in range(10): out = self.vhost.send_expect("show port stats all", "testpmd>", 60) - time.sleep(5) + time.sleep(1) lines = re.search("Rx-pps:\s*(\d*)", out) result = lines.group(1) results += float(result) Mpps = results / (1000000 * 10) - self.verify(Mpps > 0, "port can not receive packets") + self.verify(Mpps > 5, "port can not receive packets") results_row.append(case_info) results_row.append('64') -- 1.8.3.1