test suite reviews and discussions
 help / color / mirror / Atom feed
From: Rami Rosen <rami.rosen@intel.com>
To: yong.liu@intel.com
Cc: dts@dpdk.org, Rami Rosen <rami.rosen@intel.com>
Subject: [dts] [PATCH] framework: Fix a wrong parameter in traffic_generator_loss().
Date: Mon, 16 May 2016 22:21:33 +0300	[thread overview]
Message-ID: <1463426493-24597-1-git-send-email-rami.rosen@intel.com> (raw)

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 <rami.rosen@intel.com>
---
 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

             reply	other threads:[~2016-05-16 19:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-16 19:21 Rami Rosen [this message]
2016-05-23 20:50 ` Liu, Yong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1463426493-24597-1-git-send-email-rami.rosen@intel.com \
    --to=rami.rosen@intel.com \
    --cc=dts@dpdk.org \
    --cc=yong.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).