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 EAB54A00C4; Fri, 5 Jun 2020 11:26:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C82141D607; Fri, 5 Jun 2020 11:26:46 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 931C41D5DC for ; Fri, 5 Jun 2020 11:26:45 +0200 (CEST) IronPort-SDR: LJ3htBnFPPWN3f6IfdsG70ChwGDLqx2sCcPN5I3FBdsZxAQ/Oru+txh8GlScwqnWpgj1wwN7lS AVxMCtNcZbRw== 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:44 -0700 IronPort-SDR: Tjv52ltzcExYAohVEZrYixt1VWMuGzyNccsHfMWoln/MM8kPMaz4sTxsRJibaVHKcHC+l1g17/ xY5EtGsYvRkQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,475,1583222400"; d="scan'208";a="287676950" 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:43 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 5 Jun 2020 17:18:09 +0800 Message-Id: <1591348704-433901-3-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 02/17]loopback_multi_queues: 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_multi_queues.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_loopback_multi_queues.py b/tests/TestSuite_loopback_multi_queues.py index 029c1f0..10abb72 100644 --- a/tests/TestSuite_loopback_multi_queues.py +++ b/tests/TestSuite_loopback_multi_queues.py @@ -108,15 +108,15 @@ class TestLoopbackMultiQueues(TestCase): calculate the average throughput """ 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") return Mpps def update_result_table(self, frame_size, case_info, Mpps): @@ -365,7 +365,6 @@ class TestLoopbackMultiQueues(TestCase): self.start_virtio_testpmd(virtio_pmd_arg) self.send_and_verify("virtio 1.1 inorder non-mergeable") self.close_all_testpmd() - self.result_table_print() self.verify_liner_for_multi_queue() -- 1.8.3.1