From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 93DEAA04E7; Mon, 2 Nov 2020 08:40:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6FFCF6889; Mon, 2 Nov 2020 08:40:43 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 0BAE35AB9 for ; Mon, 2 Nov 2020 08:40:40 +0100 (CET) IronPort-SDR: qlZ3ROae2odI0NJ9smRd7Xzw3+N9z0TewXAh4RzZW2jhRXA6SbW4kwCqv61SbHhS98yD85rCse rbWPFP7Y/dpg== X-IronPort-AV: E=McAfee;i="6000,8403,9792"; a="165343779" X-IronPort-AV: E=Sophos;i="5.77,444,1596524400"; d="scan'208";a="165343779" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2020 23:40:38 -0800 IronPort-SDR: cRwiJKPC9gkgMwc6oLOq6ngRlB0uhAQr9WtKFmxBnW+UCUqAS4TVFQg9dVgq0NZ6wVw451OgF+ HQwyYIoDLVhg== X-IronPort-AV: E=Sophos;i="5.77,444,1596524400"; d="scan'208";a="537914389" Received: from wgchnln-pactera.sh.intel.com ([10.240.182.161]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2020 23:40:37 -0800 From: Xia Yan To: dts@dpdk.org Cc: Xia Yan Date: Mon, 2 Nov 2020 15:40:37 +0800 Message-Id: <20201102074037.27539-1-yanx.xia@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2 1/2] tests/TestSuite_checksum_offload:update scapy 2.4.4 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" scapy has been upgraded to version 2.4.4, suite need sync update. Signed-off-by: Xia Yan --- 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