[dts] [PATCH] framework: Fix a wrong parameter in traffic_generator_loss().

Rami Rosen rami.rosen at intel.com
Mon May 16 21:21:33 CEST 2016

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 at 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):

More information about the dts mailing list