From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9EE905A6B for ; Mon, 16 May 2016 21:19:39 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 16 May 2016 12:19:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,627,1459839600"; d="scan'208";a="703981699" Received: from imail001.iil.intel.com ([10.184.207.12]) by FMSMGA003.fm.intel.com with ESMTP; 16 May 2016 12:19:15 -0700 Received: from cghost.iil.intel.com (cghost.iil.intel.com [143.185.141.163]) by imail001.iil.intel.com with ESMTP id u4GJJB5i028088; Mon, 16 May 2016 22:19:11 +0300 From: Rami Rosen To: yong.liu@intel.com Cc: dts@dpdk.org, Rami Rosen Date: Mon, 16 May 2016 22:21:33 +0300 Message-Id: <1463426493-24597-1-git-send-email-rami.rosen@intel.com> X-Mailer: git-send-email 2.4.3 Subject: [dts] [PATCH] framework: Fix a wrong parameter in traffic_generator_loss(). 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: , X-List-Received-Date: Mon, 16 May 2016 19:19:40 -0000 This patch fixes a wrong parameter in traffic_generator_loss() method, in framework/tester.py. Using the existing ratePercenti parameter will cause this error: "NameError: global name 'ratePercenti' is not defined". Instead of ratePercenti it should be ratePercent. Signed-off-by: Rami Rosen --- framework/tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/tester.py b/framework/tester.py index 76ceeb4..63f19e9 100644 --- a/framework/tester.py +++ b/framework/tester.py @@ -489,7 +489,7 @@ class Tester(Crb): elif not self.check_port_list(portList): self.logger.warning("exception by mixed port types") return None - return self.packet_gen.loss(portList, ratePercenti, delay) + return self.packet_gen.loss(portList, ratePercent, delay) def traffic_generator_latency(self, portList, ratePercent=100, delay=5): """ -- 2.4.3