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 A56ADA00C4; Fri, 5 Jun 2020 11:27:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4D58B1D603; Fri, 5 Jun 2020 11:27:06 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 60CD91D632 for ; Fri, 5 Jun 2020 11:27:05 +0200 (CEST) IronPort-SDR: YQOEriV4Bv3dqwe1KXG6C0v5sXCdkdcSJZUlLtB9zNC3gqAurxzTYrTYCIK/8Fx53xf8xnOjDC q5YMO7bFBdTA== 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:27:05 -0700 IronPort-SDR: jDJpTwDwT1MmK+2mVEcNLdiQdPyJD2St5G5b/MJPsakRqvwklDNNCgO3jS7EIyuV2RbJwaZOt1 DH6iVObXZjBw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,475,1583222400"; d="scan'208";a="287677100" 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:27:03 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 5 Jun 2020 17:18:24 +0800 Message-Id: <1591348704-433901-18-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 17/17]vm2vm_virtio_pmd: 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_vm2vm_virtio_pmd.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py b/tests/TestSuite_vm2vm_virtio_pmd.py index d4ffdc7..7fea5bf 100644 --- a/tests/TestSuite_vm2vm_virtio_pmd.py +++ b/tests/TestSuite_vm2vm_virtio_pmd.py @@ -222,14 +222,15 @@ class TestVM2VMVirtioPMD(TestCase): def calculate_avg_throughput(self): results = 0.0 + self.vhost_user.send_expect("show port stats 1", "testpmd> ", 60) for i in range(10): out = self.vhost_user.send_expect("show port stats 1", "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, "%s can not receive packets" % self.running_case) + self.verify(Mpps > 4.5, "%s can not receive packets" % self.running_case) return Mpps def update_table_info(self, case_info, frame_size, Mpps, path): @@ -246,7 +247,7 @@ class TestVM2VMVirtioPMD(TestCase): """ # start to send packets self.vm_dut[0].send_expect("set fwd rxonly", "testpmd> ", 10) - self.vm_dut[0].send_expect("start", "testpmd> ", 10) + self.vm_dut[0].send_command("start", 3) self.vm_dut[1].send_expect("set fwd txonly", "testpmd> ", 10) self.vm_dut[1].send_expect("set txpkts 64", "testpmd> ", 10) self.vm_dut[1].send_expect("start tx_first 32", "testpmd> ", 10) -- 1.8.3.1