[dts] testcase: fix some bugs for performance case

Ding Heng hengx.ding at intel.com
Mon Jun 13 11:01:34 CEST 2016


checksum_offload: set verbose will affect testpmd performance, delete it.
link_flow_control: self.pause_frame_loss_test() return value is tuple now, need
to make some change to adapt this change.

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

diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py
index 7dc8ddc..26bbe25 100644
--- a/tests/TestSuite_checksum_offload.py
+++ b/tests/TestSuite_checksum_offload.py
@@ -305,7 +305,6 @@ class TestChecksumOffload(TestCase):
             self.pmdout.start_testpmd(
                 lcore, "--portmask=%s" % self.portMask, socket=self.ports_socket)
 
-            self.dut.send_expect("set verbose 1", "testpmd> ")
             self.dut.send_expect("set fwd csum", "testpmd> ")
             if mode == "hw":
                 self.checksum_enablehw(self.dut_ports[0])
diff --git a/tests/TestSuite_link_flowctrl.py b/tests/TestSuite_link_flowctrl.py
index 11c1795..533e427 100644
--- a/tests/TestSuite_link_flowctrl.py
+++ b/tests/TestSuite_link_flowctrl.py
@@ -335,7 +335,7 @@ class TestLinkFlowctrl(TestCase):
         Disable link flow control and PAUSE frame forwarding
         """
 
-        result = self.pause_frame_loss_test(rx_flow_control='on',
+        result,_,_ = self.pause_frame_loss_test(rx_flow_control='on',
                                             tx_flow_control='on',
                                             pause_frame_fwd='on')
 
@@ -349,7 +349,7 @@ class TestLinkFlowctrl(TestCase):
         Disable link flow control and enable PAUSE frame forwarding
         """
 
-        result = self.pause_frame_loss_test(rx_flow_control='on',
+        result,_,_ = self.pause_frame_loss_test(rx_flow_control='on',
                                             tx_flow_control='on',
                                             pause_frame_fwd='off')
 
@@ -363,7 +363,7 @@ class TestLinkFlowctrl(TestCase):
         Enable only rx link flow control
         """
 
-        result = self.pause_frame_loss_test(rx_flow_control='on',
+        result,_,_ = self.pause_frame_loss_test(rx_flow_control='on',
                                             tx_flow_control='on',
                                             pause_frame_fwd='off')
 
@@ -377,7 +377,7 @@ class TestLinkFlowctrl(TestCase):
         Enable link flow control and disable PAUSE frame forwarding
         """
 
-        result = self.pause_frame_loss_test(rx_flow_control='off',
+        result,_,_ = self.pause_frame_loss_test(rx_flow_control='off',
                                             tx_flow_control='off',
                                             pause_frame_fwd='on')
 
@@ -391,7 +391,7 @@ class TestLinkFlowctrl(TestCase):
         Disable link flow control and PAUSE frame forwarding
         """
 
-        result = self.pause_frame_loss_test(rx_flow_control='off',
+        result,_,_ = self.pause_frame_loss_test(rx_flow_control='off',
                                             tx_flow_control='off',
                                             pause_frame_fwd='off')
 
@@ -405,7 +405,7 @@ class TestLinkFlowctrl(TestCase):
         Disable link flow control and PAUSE frame forwarding
         """
 
-        result = self.pause_frame_loss_test(rx_flow_control='off',
+        result,_,_ = self.pause_frame_loss_test(rx_flow_control='off',
                                             tx_flow_control='on',
                                             pause_frame_fwd='off')
 
-- 
1.9.3



More information about the dts mailing list