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 AFB75A00C4; Fri, 5 Jun 2020 11:26:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A264A1D5FC; Fri, 5 Jun 2020 11:26:45 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 015D61D5DC for ; Fri, 5 Jun 2020 11:26:43 +0200 (CEST) IronPort-SDR: wnJGAVZAk37LYEJlqjq52cyLhPKs1FFUTU2ABZDM7rkgbNnEyD69DLa4saqE1cZ0LBAJBbtFa7 GkR64lthPxUQ== 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:43 -0700 IronPort-SDR: SgTb9mJK3sJoOOEBu2eGWmc/5TFyKvngpL378ZEEUxGJH1bNiHKEXrK54OhJIveQ2SZL4W0hEI c70LnSi5Ne5g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,475,1583222400"; d="scan'208";a="287676943" 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:42 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 5 Jun 2020 17:18:08 +0800 Message-Id: <1591348704-433901-2-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 01/17]loopback_multi_paths_port_restart: 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_paths_port_restart.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py b/tests/TestSuite_loopback_multi_paths_port_restart.py index 8d23196..3f44232 100644 --- a/tests/TestSuite_loopback_multi_paths_port_restart.py +++ b/tests/TestSuite_loopback_multi_paths_port_restart.py @@ -152,14 +152,15 @@ class TestLoopbackPortRestart(TestCase): calculate the average throughput """ results = 0.0 + 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, "%s can not receive packets" % self.running_case) + self.verify(Mpps > 0.5, "%s can not receive packets" % self.running_case) return Mpps def send_and_verify(self, case_info, frame_size, restart_times=1): -- 1.8.3.1