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 928AAA04C5; Fri, 4 Sep 2020 21:13:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5E2771BC25; Fri, 4 Sep 2020 21:13:44 +0200 (CEST) Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by dpdk.org (Postfix) with ESMTP id 96232255 for ; Fri, 4 Sep 2020 21:13:42 +0200 (CEST) Received: by mail-qt1-f194.google.com with SMTP id k25so4546018qtu.4 for ; Fri, 04 Sep 2020 12:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=I0sIvIJ2Mzk3nxGBS8tEDlP1b2XtOznnTf/mmeb6mWo=; b=IwyBapOq1LDob/AChiM53u8wvEUVUIAEqOwfms1N5C6sLtUrCMPFNiUaGC6qVXCES9 t+Fkk2p3zsNzFbE9a4HjyBMKqI1lNudPX4sFUZIahc8H6CL089JG9SZsFWdIhT/WMN2y P8AscCUw1NoXI8Vl2f/TWZX/AUgI+6Ec1Qm2o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I0sIvIJ2Mzk3nxGBS8tEDlP1b2XtOznnTf/mmeb6mWo=; b=WXKg9vr6ntUeVGTmGEFhEangIdHBsYrrwN3SmttYax9+K8MSjvnHCQyGy5hRR8Qtla jnmdSVQFWlXPeDY/0FNONcUec1lZgqFh03wJI8QaLeLzlUitNp9S7cVgG6PF9UNIrMkH PkXP5505YIsCusseUhJMAppwuxeNzdUOjWGHoJA2DN6RRNeWjcOrQZYaD2VbLIj1gIlB x621PCoUVZT9I1dx5TUw86CekDvyiYi//P11DF3OF09IZfBJ6I8TXURA+G7lGppbBqkH BJJ6s1fD1QUxXSAI2Q7tZhd/nK5Ktn8vgsL8KmCL9+bvKujsttFLZ3bXBF4QyEZeY/Od EBHw== X-Gm-Message-State: AOAM5324B0qBNnlR2RwYTAo70ZNAPuPbRWEH0t1mDDxL+cPiI3uYMzJw i+iZmOE+RdR07Bcx9aBm8A/0NKSXPxN/65cX0zbWvDbTqaaynnu1G1dvPzg9u0TqLYltEOdVNHg iCnSCVDl2lDC4OqmlCtTtyDJRXVeSsyNvF/A93N9Exb+H2wjblbu/U/lUC6DJ X-Google-Smtp-Source: ABdhPJyPTLRgM7WyovHmChsqBRdUkc/TEJ7fU0+Sh8WWY3Cc3oV2PjO2bfrGQ9sQi0YgSkNg+9zBeQ== X-Received: by 2002:ac8:2934:: with SMTP id y49mr9805598qty.202.1599246821665; Fri, 04 Sep 2020 12:13:41 -0700 (PDT) Received: from ohilyard-Alienware-m17.iol.unh.edu ([2606:4100:3880:1254::1033]) by smtp.googlemail.com with ESMTPSA id m138sm5177085qke.99.2020.09.04.12.13.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 12:13:41 -0700 (PDT) From: Owen Hilyard To: dts@dpdk.org, lihongx.ma@intel.com Cc: xix.zhang@intel.com, xuemingx.zhang@intel.com, ohilyard@iol.unh.edu Date: Fri, 4 Sep 2020 03:13:20 -0400 Message-Id: <20200904071321.26617-1-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/checksum_offload: Bugfix for bug 529 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" added missing quote in template for scapy packets. Signed-off-by: Owen Hilyard --- tests/TestSuite_checksum_offload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py index c4a877d..ef7a9de 100644 --- a/tests/TestSuite_checksum_offload.py +++ b/tests/TestSuite_checksum_offload.py @@ -374,7 +374,7 @@ class TestChecksumOffload(TestCase): def replay_pcap_file_on_tester(self, iface, packet_file_path): self.tester.send_expect("scapy", ">>>") self.scapy_exec(f"packets = rdpcap('{packet_file_path}')") - self.scapy_exec(f"sendp(packets, iface={iface})") + self.scapy_exec(f"sendp(packets, iface='{iface}')") self.tester.send_expect("quit()", "# ") def validate_packet_list_checksums(self, packets): @@ -703,7 +703,7 @@ class TestChecksumOffload(TestCase): for l4 in l4_protos: for chksum in "", "chksum=0xf": vf = self.send_pkt_expect_good_bad_from_flag_catch_failure( - f"eth/IP({chksum})/{l4}()/(X'*50)", + f"eth/IP({chksum})/{l4}()/('X'*50)", "PKT_RX_IP_CKSUM_", f"{l4}", should_pass=(chksum == "")) if vf is not None: -- 2.25.1