[dts] [PATCH] tests pmd: fix perf_pmd_performance_4ports case failed issue.

Ding Heng hengx.ding at intel.com
Mon Nov 9 04:19:58 CET 2015


Modify a variable name to avoid this issue.

Signed-off-by: Ding Heng <hengx.ding at intel.com>

diff --git a/tests/TestSuite_pmd.py b/tests/TestSuite_pmd.py
index 525ed02..29dec2b 100644
--- a/tests/TestSuite_pmd.py
+++ b/tests/TestSuite_pmd.py
@@ -154,12 +154,13 @@ class TestPmd(TestCase,IxiaPacketGenerator):
             port_mask = dts.create_mask(self.dut.get_ports())
 
             self.pmdout.start_testpmd("all", "--coremask=%s --rxq=%d --txq=%d --portmask=%s --rss-ip" % (core_mask, queues, queues, port_mask))
+	    command_line = self.pmdout.get_pmd_cmd()
 
             info = "Executing PMD (mac fwd) using %s\n" % test_cycle['cores']
             dts.report(info, annex=True)
             self.logger.info(info)
 
-            dts.report(commandLine + "\n\n", frame=True, annex=True)
+            dts.report(command_line + "\n\n", frame=True, annex=True)
 
             # self.dut.send_expect("set fwd mac", "testpmd> ", 100)
             self.dut.send_expect("start", "testpmd> ")
-- 
1.9.3



More information about the dts mailing list