diff mbox series

[V2,1/2] tests/TestSuite_checksum_offload:update scapy 2.4.4

Message ID 20201102074037.27539-1-yanx.xia@intel.com (mailing list archive)
State Superseded
Headers show
Series [V2,1/2] tests/TestSuite_checksum_offload:update scapy 2.4.4 | expand

Commit Message

Yan Xia Nov. 2, 2020, 7:40 a.m. UTC
scapy has been upgraded to version 2.4.4, suite need sync update.

Signed-off-by: Xia Yan <yanx.xia@intel.com>
---
 tests/TestSuite_checksum_offload.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py
index c917a15..89abf04 100644
--- a/tests/TestSuite_checksum_offload.py
+++ b/tests/TestSuite_checksum_offload.py
@@ -315,7 +315,7 @@  class TestChecksumOffload(TestCase):
         csum = pkt[layer].chksum
         del pkt[layer].chksum
         # Converting it to raw will calculate the checksum
-        return layer(Raw(pkt[layer])).chksum == csum
+        return layer(bytes(Raw(pkt[layer]))).chksum == csum
 
     def scapy_exec(self, cmd: str, timeout=1) -> str:
         return self.tester.send_expect(cmd, ">>>", timeout=timeout)