[V6,1/5] tests/vf_offload: fix 2 typos and a bug.

Message ID 20221223085527.29760-2-ke1.xu@intel.com (mailing list archive)
State Accepted
Headers
Series add vf checksum offload and tso case for tunnel packets. |

Commit Message

Ke Xu Dec. 23, 2022, 8:55 a.m. UTC
  Checksum is wrongly spelled as checksup.

Finally is wrongly spelled as fially.

String formating is wrongly put out
 side of the function call.

Signed-off-by: Ke Xu <ke1.xu@intel.com>
---
 tests/TestSuite_vf_offload.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
  

Patch

diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py
index 26fad2b8..3fb6f9c8 100644
--- a/tests/TestSuite_vf_offload.py
+++ b/tests/TestSuite_vf_offload.py
@@ -265,7 +265,7 @@  class TestVfOffload(TestCase):
             (
                 ip_checksum,
                 tcp_checksum,
-                udp_checksup,
+                udp_checksum,
                 sctp_checksum,
             ) = packet_received.split(";")
             print(
@@ -273,8 +273,8 @@  class TestVfOffload(TestCase):
                 ip_checksum,
                 "tcp_checksum:, ",
                 tcp_checksum,
-                "udp_checksup: ",
-                udp_checksup,
+                "udp_checksum: ",
+                udp_checksum,
                 "sctp_checksum: ",
                 sctp_checksum,
             )
@@ -284,9 +284,9 @@  class TestVfOffload(TestCase):
             if tcp_checksum != "??":
                 packet_type = "TCP"
                 l4_checksum = tcp_checksum
-            elif udp_checksup != "??":
+            elif udp_checksum != "??":
                 packet_type = "UDP"
-                l4_checksum = udp_checksup
+                l4_checksum = udp_checksum
             elif sctp_checksum != "??":
                 packet_type = "SCTP"
                 l4_checksum = sctp_checksum
@@ -439,7 +439,7 @@  class TestVfOffload(TestCase):
             command = ("tcpdump -w tcpdump_{0}.pcap -i {0} 2>tcpdump_{0}.out &").format(
                 iface
             )
-            self.tester.send_expect("rm -f tcpdump_{0}.pcap", "#").format(iface)
+            self.tester.send_expect("rm -f tcpdump_{0}.pcap".format(iface), "#")
             self.tester.send_expect(command, "#")
 
     def tcpdump_stop_sniff(self):
@@ -478,8 +478,8 @@  class TestVfOffload(TestCase):
         Execute scanner to return results
         """
         scanner_result = self.tester.send_expect(scanner, "#")
-        fially_result = re.findall(r"length( \d+)", scanner_result)
-        return list(fially_result)
+        finally_result = re.findall(r"length( \d+)", scanner_result)
+        return list(finally_result)
 
     def number_of_bytes(self, iface):
         """