* [dts] [PATCH V2 1/2] tests/TestSuite_checksum_offload:update scapy 2.4.4
@ 2020-11-02 7:40 Xia Yan
0 siblings, 0 replies; only message in thread
From: Xia Yan @ 2020-11-02 7:40 UTC (permalink / raw)
To: dts; +Cc: Xia Yan
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 --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)
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-02 7:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 7:40 [dts] [PATCH V2 1/2] tests/TestSuite_checksum_offload:update scapy 2.4.4 Xia Yan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).