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 21103A04B0; Wed, 19 Aug 2020 04:43:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6C3F51BE3D; Wed, 19 Aug 2020 04:43:12 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 484E72C02 for ; Wed, 19 Aug 2020 04:43:11 +0200 (CEST) IronPort-SDR: G+BQoGN6O/f2bEJ2Ovsxjnl1gDHzz3Y2G9YnIKMARdLXda79DUqdArm2eWpVuSWWJIDbK99vFM LRZcpnGyuxgg== X-IronPort-AV: E=McAfee;i="6000,8403,9717"; a="155005681" X-IronPort-AV: E=Sophos;i="5.76,329,1592895600"; d="scan'208";a="155005681" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2020 19:43:10 -0700 IronPort-SDR: LTVPCdNDEGzI7BsfhsJl0G7rW1jzJrL7HWh3kfM5OrSUTR03UjdqyXMpFeuW1XxWGIZmOLL1E3 lFApP5UChgHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,329,1592895600"; d="scan'208";a="292964691" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by orsmga003.jf.intel.com with ESMTP; 18 Aug 2020 19:43:09 -0700 From: yufengmx To: dts@dpdk.org Cc: yufengmx Date: Wed, 19 Aug 2020 10:40:41 +0800 Message-Id: <20200819024041.43005-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200819024041.43005-1-yufengx.mo@intel.com> References: <20200819024041.43005-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/1] l3fwd: change rfc2544 pass/fail check 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" change rfc2544 check condition check the case pass : wave = 22.996*0.01 ; config - wave = --- tests/l3fwd_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/l3fwd_base.py b/tests/l3fwd_base.py index a0190a7..1eccc0e 100644 --- a/tests/l3fwd_base.py +++ b/tests/l3fwd_base.py @@ -885,7 +885,7 @@ class L3fwdBase(object): str(rx_pkts), ]) # check data with expected values - gap = 100 * (zero_loss_rate - expected_rate) / expected_rate + gap = 100 * (actual_rate_percent - expected_rate) / expected_rate status = 'pass' \ if abs(gap) < bias \ else 'failed' -- 2.21.0