[V1,1/2] tests/checksum_offload: checksum suite script and testplan optimization

Message ID 20220718082531.17145-1-weiyuanx.li@intel.com (mailing list archive)
State Superseded
Headers
Series [V1,1/2] tests/checksum_offload: checksum suite script and testplan optimization |

Commit Message

Weiyuan Li July 18, 2022, 8:25 a.m. UTC
  Optimize the test case name to match test plan, add test case in test
plan to map test suite and delete the cmd "tx_checksum set 0x0 0" using "csum set".

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 tests/TestSuite_checksum_offload.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py
index 3554f5eb..3680db11 100644
--- a/tests/TestSuite_checksum_offload.py
+++ b/tests/TestSuite_checksum_offload.py
@@ -604,7 +604,7 @@  class TestChecksumOffload(TestCase):
         # send the packet checksum value different from the expected value
         self.checksum_valid_flags(pkts_bad, 0)
 
-    def test_checksum_offload_enable(self):
+    def test_insert_checksum_on_the_transmit_packet(self):
         """
         Insert IPv4/IPv6 UDP/TCP/SCTP checksum on the transmit packet.
         Enable Checksum offload.
@@ -653,7 +653,7 @@  class TestChecksumOffload(TestCase):
 
         self.verify(len(result) == 0, ",".join(list(result.values())))
 
-    def test_checksum_offload_disable(self):
+    def test_do_not_insert_checksum_on_the_transmit_packet(self):
         """
         Do not insert IPv4/IPv6 UDP/TCP checksum on the transmit packet.
         Disable Checksum offload.